diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2015-10-16 22:12:35 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-16 23:05:17 -0700 |
commit | 574dddc6d73eedb3177c8db4f61fa7cebcabb128 (patch) | |
tree | d95072823cb0d0ea5e1b47f3239754fbd2de8da0 /drivers/staging/vt6656 | |
parent | 17accc46ec6e015a48c5afd281381a33d6b1da16 (diff) | |
download | blackbird-op-linux-574dddc6d73eedb3177c8db4f61fa7cebcabb128.tar.gz blackbird-op-linux-574dddc6d73eedb3177c8db4f61fa7cebcabb128.zip |
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 <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656')
-rw-r--r-- | drivers/staging/vt6656/card.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |