[PATCH] arm: nomadik: avoid assigning u32 to bool
Nicolas Kaiser
nikai at nikai.net
Fri Apr 1 17:51:13 EDT 2011
Avoid assigning u32 to the bool 'enabled'.
Signed-off-by: Nicolas Kaiser <nikai at nikai.net>
---
arch/arm/plat-nomadik/gpio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/plat-nomadik/gpio.c b/arch/arm/plat-nomadik/gpio.c
index f49748e..8b722f7 100644
--- a/arch/arm/plat-nomadik/gpio.c
+++ b/arch/arm/plat-nomadik/gpio.c
@@ -636,7 +636,7 @@ static int nmk_gpio_irq_set_type(struct irq_data *d, unsigned int type)
if (type & IRQ_TYPE_LEVEL_LOW)
return -EINVAL;
- enabled = nmk_chip->enabled & bitmask;
+ enabled = !!(nmk_chip->enabled & bitmask);
spin_lock_irqsave(&nmk_chip->lock, flags);
--
1.7.3.4
More information about the linux-arm-kernel
mailing list