From: Amitoj Kaur Chawla Date: Fri, 16 Oct 2015 16:43:29 +0000 (+0530) Subject: staging: vt6655: Prefer using BIT Macro X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a8a211c481f806c20d56ddb7b0f8533813e936d0;p=linux-beck.git staging: vt6655: 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/vt6655/card.c b/drivers/staging/vt6655/card.c index e0bf39e07c6d..5c7f07e183c7 100644 --- a/drivers/staging/vt6655/card.c +++ b/drivers/staging/vt6655/card.c @@ -808,7 +808,7 @@ bool CARDbIsOFDMinBasicRate(struct vnt_private *pDevice) int ii; for (ii = RATE_54M; ii >= RATE_6M; ii--) { - if ((pDevice->basic_rates) & ((u32)(1 << ii))) + if ((pDevice->basic_rates) & ((u32)BIT(ii))) return true; } return false;