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>
This commit is contained in:
Amitoj Kaur Chawla 2015-10-16 22:13:29 +05:30 committed by Greg Kroah-Hartman
parent 574dddc6d7
commit a8a211c481
1 changed files with 1 additions and 1 deletions

View File

@ -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;