提交 574dddc6 编写于 作者: A Amitoj Kaur Chawla 提交者: Greg Kroah-Hartman

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: NAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 17accc46
...@@ -473,7 +473,7 @@ int vnt_ofdm_min_rate(struct vnt_private *priv) ...@@ -473,7 +473,7 @@ int vnt_ofdm_min_rate(struct vnt_private *priv)
int ii; int ii;
for (ii = RATE_54M; ii >= RATE_6M; 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; return true;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册