summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2015-10-16 22:13:29 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-16 23:05:17 -0700
commita8a211c481f806c20d56ddb7b0f8533813e936d0 (patch)
tree6ae7fbe4fe23b2e4aab4b5d449578a730f7ceca8 /drivers/staging/vt6655
parent574dddc6d73eedb3177c8db4f61fa7cebcabb128 (diff)
downloadlinux-a8a211c481f806c20d56ddb7b0f8533813e936d0.tar.gz
linux-a8a211c481f806c20d56ddb7b0f8533813e936d0.tar.bz2
linux-a8a211c481f806c20d56ddb7b0f8533813e936d0.zip
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 <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655')
-rw-r--r--drivers/staging/vt6655/card.c2
1 files changed, 1 insertions, 1 deletions
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;