Messages in this thread | | | Date | Sat, 2 Apr 2011 23:19:54 +0200 | From | Alessandro Rubini <> | Subject | Re: [PATCH] arm: nomadik: avoid assigning u32 to bool |
| |
>> - 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@unipv.it>
/alessandro
| |