linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: nomadik: avoid assigning u32 to bool
@ 2011-04-01 21:51 Nicolas Kaiser
  2011-04-02 21:02 ` Linus Walleij
  2011-04-03  3:58 ` Rabin Vincent
  0 siblings, 2 replies; 6+ messages in thread
From: Nicolas Kaiser @ 2011-04-01 21:51 UTC (permalink / raw)
  To: linux-arm-kernel

Avoid assigning u32 to the bool 'enabled'.

Signed-off-by: Nicolas Kaiser <nikai@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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-04-03 10:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-01 21:51 [PATCH] arm: nomadik: avoid assigning u32 to bool Nicolas Kaiser
2011-04-02 21:02 ` Linus Walleij
2011-04-02 21:19   ` Alessandro Rubini
2011-04-03  3:58 ` Rabin Vincent
2011-04-03 10:26   ` Nicolas Kaiser
2011-04-03 10:52     ` Alessandro Rubini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).