]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
board: ti: dra7xx: complex definitions should be protected with parentheses
authorMugunthan V N <mugunthanvnm@ti.com>
Tue, 27 Sep 2016 07:31:42 +0000 (13:01 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 8 Oct 2016 13:33:35 +0000 (09:33 -0400)
As a standard practice complex definitions should be protected
with parentheses, as it might fail when used in a complex if
statements.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/ti/dra7xx/evm.c

index 588918f4d6964b86a7ed332f4d01d31165b03669..3c168467353f44ce05179dc9047a01ee4de06e43 100644 (file)
 
 #define board_is_dra74x_evm()          board_ti_is("5777xCPU")
 #define board_is_dra72x_evm()          board_ti_is("DRA72x-T")
-#define board_is_dra74x_revh_or_later() board_is_dra74x_evm() &&       \
-                               (strncmp("H", board_ti_get_rev(), 1) <= 0)
-#define board_is_dra72x_revc_or_later() board_is_dra72x_evm() &&       \
-                               (strncmp("C", board_ti_get_rev(), 1) <= 0)
+#define board_is_dra74x_revh_or_later() (board_is_dra74x_evm() &&      \
+                               (strncmp("H", board_ti_get_rev(), 1) <= 0))
+#define board_is_dra72x_revc_or_later() (board_is_dra72x_evm() &&      \
+                               (strncmp("C", board_ti_get_rev(), 1) <= 0))
 #define board_ti_get_emif_size()       board_ti_get_emif1_size() +     \
                                        board_ti_get_emif2_size()