Re: [PATCH] Staging: rtlwifi: Remove unwanted parentheses

From: Madhumthia Prabakaran
Date: Wed Apr 03 2019 - 18:51:05 EST


On Wed, Apr 03, 2019 at 07:21:45PM +0300, Dan Carpenter wrote:
> 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));

Thanks for reviewing it.

>
> regards,
> dan carpenter