[PATCH] Staging: rtlwifi: Remove unwanted parentheses

Dan Carpenter dan.carpenter at oracle.com
Wed Apr 3 16:21:45 UTC 2019


On Wed, Apr 03, 2019 at 07:18:03PM +0300, Dan Carpenter wrote:
> 		data_bit  = (data & BIT(i)) ? 1 : 0;

I quite like the !! idiom also...

		data_bit = !!(data & BIT(i));

regards,
dan carpenter


More information about the devel mailing list