Re: [PATCH 13/15] staging: rtl8192u: Prefer using the BIT macro

From: Greg KH
Date: Sun Feb 12 2017 - 07:53:15 EST


On Sun, Feb 12, 2017 at 11:17:58AM +0530, simran singhal wrote:
> This patch replaces bit shifting on 1 with the BIT(x) macro as it's
> extensively used by other function in this driver.
>
> This was done with coccinelle:
> @@ int g; @@
>
> -(1 << g)
> +BIT(g)
>
> Signed-off-by: simran singhal <singhalsimran0@xxxxxxxxx>

ALWAYS test build your patches, otherwise you will get grumpy emails
from maintainers telling you to test build your patches!

Not good...

greg k-h