Staging: vt6656: fix unnecessary parantheses
PATCH 1/1 Staging: vt6656: fix unnecessary parantheses
This patch fixes a coding style issue as noted by
checkpatch.pl related to unnecessary parentheses.
This patch fixes the following checkpatch.pl warning:
WARNING: Unnecessary parentheses around 'priv->basic_rates'.
Signed-off-by Sumit Pundir <[email protected]>
--- drivers/staging/vt6656/card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vt6656/card.c +1 -1
@@ -443,7 +443,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 )BIT (ii))) +if (priv->basic_rates & ((u16 )BIT (ii)))return true; }
--
2.7.4
Greg KH
maintainerQuoted 17 lines · Sumit Pundir
This patch fixes a coding style issue as noted by
checkpatch.pl related to unnecessary parentheses.This patch fixes the following checkpatch.pl warning:
WARNING: Unnecessary parentheses around '
priv->basic_rates'.Signed-off-by Sumit Pundir <[email protected]>--- drivers/staging/vt6656/card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/vt6656/card.c +0
-0
drivers/staging/vt6656/card.c int vnt_ofdm_min_rate(struct vnt_private *priv) · line 446
Quoted 5 lines
drivers/staging/vt6656/card.c +1
-1@@ -443,7 +443,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 )BIT (ii))) +if (priv->basic_rates & ((u16 )BIT (ii)))
You still have one too many () around the BIT stuff...