From 574dddc6d73eedb3177c8db4f61fa7cebcabb128 Mon Sep 17 00:00:00 2001 From: Amitoj Kaur Chawla Date: Fri, 16 Oct 2015 22:12:35 +0530 Subject: [PATCH] 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 --- drivers/staging/vt6656/card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1