]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8723bs: Macros with complex values should be enclosed in parentheses
authorJustin Vreeland <justin@jvreeland.com>
Tue, 2 May 2017 00:52:50 +0000 (18:52 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 05:41:57 +0000 (07:41 +0200)
Enclosing macros with complex values ensures expression is evaluated as
expected.

Signed-off-by: Justin Vreeland <justin@jvreeland.com>
Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/odm.h

index 0b3541a9154827e5d0ee288ab8bcace96f7553d2..87a76bafecb3b826c4c94593bc2179d4641a5c2f 100644 (file)
@@ -209,7 +209,10 @@ typedef struct _ODM_RATE_ADAPTIVE {
 
 #define AVG_THERMAL_NUM                8
 #define IQK_Matrix_REG_NUM     8
-#define IQK_Matrix_Settings_NUM        14+24+21 /*  Channels_2_4G_NUM + Channels_5G_20M_NUM + Channels_5G */
+#define IQK_Matrix_Settings_NUM        (14 + 24 + 21) /*   Channels_2_4G_NUM
+                                               * + Channels_5G_20M_NUM
+                                               * + Channels_5G
+                                               */
 
 #define                DM_Type_ByFW                    0
 #define                DM_Type_ByDriver                1