[PATCH] arm: nomadik: avoid assigning u32 to bool
rubini at unipv.it
Sat Apr 2 17:19:54 EDT 2011
>> - enabled = nmk_chip->enabled & bitmask;
>> + enabled = !!(nmk_chip->enabled & bitmask);
> I've learned to live this way of casting stuff into boolean,
I use (and love) !! since I learnt C. What I really dislike is the
concept of boolean that doesn't fit in the C way of thinking, in my opinion.
But I'm not going to change that.
Acked-by: Alessandro Rubini <rubini at unipv.it>
More information about the linux-arm-kernel