From: Colin Foster Date: Sat, 30 Apr 2022 23:23:27 +0000 (-0700) Subject: net: mscc: ocelot: add missed parentheses around macro argument X-Git-Tag: baikal/mips/sdk6.1~5698^2~205^2 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=fd2c28e0034ef49fe173ad54f1daa8f857913542;p=kernel.git net: mscc: ocelot: add missed parentheses around macro argument Commit 0e9b1886d08c ("net: ethernet: ocelot: remove the need for num_stats initializer") added a macro that patchwork warned it lacked parentheses around an argument. Correct this mistake. Fixes: 0e9b1886d08c ("net: ethernet: ocelot: remove the need for num_stats initializer") Signed-off-by: Colin Foster Reviewed-by: Vladimir Oltean Tested-by: Vladimir Oltean Signed-off-by: Jakub Kicinski --- diff --git a/include/soc/mscc/ocelot.h b/include/soc/mscc/ocelot.h index 75739766244bb..8d8d46778f7e6 100644 --- a/include/soc/mscc/ocelot.h +++ b/include/soc/mscc/ocelot.h @@ -106,7 +106,7 @@ #define REG_RESERVED(reg) REG(reg, REG_RESERVED_ADDR) #define for_each_stat(ocelot, stat) \ - for ((stat) = ocelot->stats_layout; \ + for ((stat) = (ocelot)->stats_layout; \ ((stat)->name[0] != '\0'); \ (stat)++)