staging: rtl8192e: fix coding style errors (macros in parentheses)
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Mon, 16 Mar 2015 23:00:50 +0000 (00:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Mar 2015 12:13:58 +0000 (13:13 +0100)
Fix checkpatch.pl errors 'Macros with complex values should be enclosed in parentheses'.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_HT.h

index 13f41057461a19938b0e36b9e8f3bf59fa10ca10..193c872bf08169c9a25f09ac4bc72d1f610fcf8b 100644 (file)
@@ -78,7 +78,7 @@ enum chnl_op {
 };
 
 #define CHHLOP_IN_PROGRESS(_pHTInfo)   \
-               ((_pHTInfo)->ChnlOp > CHNLOP_NONE) ? true : false
+               (((_pHTInfo)->ChnlOp > CHNLOP_NONE) ? true : false)
 
 /*
 union ht_capability {
@@ -385,8 +385,8 @@ extern u8 MCS_FILTER_1SS[16];
 #define        LEGACY_WIRELESS_MODE    IEEE_MODE_MASK
 
 #define CURRENT_RATE(WirelessMode, LegacyRate, HTRate) \
-                       ((WirelessMode & (LEGACY_WIRELESS_MODE)) != 0) ? \
-                       (LegacyRate) : (PICK_RATE(LegacyRate, HTRate))
+                       (((WirelessMode & (LEGACY_WIRELESS_MODE)) != 0) ? \
+                       (LegacyRate) : (PICK_RATE(LegacyRate, HTRate)))