[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190403225038.GA22678@madhuleo>
Date: Wed, 3 Apr 2019 17:50:39 -0500
From: Madhumthia Prabakaran <madhumithabiw@...il.com>
To: Dan Carpenter <dan.carpenter@...cle.com>,
gregkh@...uxfoundation.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Staging: rtlwifi: Remove unwanted parentheses
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
Powered by blists - more mailing lists