From: Amitoj Kaur Chawla Date: Fri, 16 Oct 2015 16:42:35 +0000 (+0530) Subject: staging: vt6656: Prefer using BIT Macro X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=574dddc6d73eedb3177c8db4f61fa7cebcabb128;p=linux-beck.git staging: vt6656: Prefer using BIT Macro Replace bit shifting on 1 with the BIT(x) Macro The semantic patch used to find this is: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/card.c b/drivers/staging/vt6656/card.c index 167dca9d243a..70685e5a79a9 100644 --- a/drivers/staging/vt6656/card.c +++ b/drivers/staging/vt6656/card.c @@ -473,7 +473,7 @@ int vnt_ofdm_min_rate(struct vnt_private *priv) int ii; for (ii = RATE_54M; ii >= RATE_6M; ii--) { - if ((priv->basic_rates) & ((u16)(1 << ii))) + if ((priv->basic_rates) & ((u16)BIT(ii))) return true; }