Commit 78a3ce94 authored by Antonio Borneo's avatar Antonio Borneo Committed by Linus Walleij
Browse files

pinctrl: stm32: Avoid keeping a bool value in a u32 variable



Change type of variable to avoid keeping the bool return value in
a variable of u32 type.

Signed-off-by: default avatarAntonio Borneo <antonio.borneo@foss.st.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 701a6aa4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1148,7 +1148,7 @@ static u32 stm32_pconf_get_bias(struct stm32_gpio_bank *bank,
static bool stm32_pconf_get(struct stm32_gpio_bank *bank,
	unsigned int offset, bool dir)
{
	u32 val;
	bool val;

	if (dir)
		val = !!(readl_relaxed(bank->base + STM32_GPIO_IDR) &