From a8a211c481f806c20d56ddb7b0f8533813e936d0 Mon Sep 17 00:00:00 2001 From: Amitoj Kaur Chawla Date: Fri, 16 Oct 2015 22:13:29 +0530 Subject: [PATCH] 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 --- drivers/staging/vt6655/card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5