Commit 8c5b07da authored by Colin Foster's avatar Colin Foster Committed by Jakub Kicinski

net: mscc: ocelot: add missed parentheses around macro argument

Commit 2f187bfa ("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: 2f187bfa ("net: ethernet: ocelot: remove the need for num_stats initializer")
Signed-off-by: default avatarColin Foster <colin.foster@in-advantage.com>
Reviewed-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 05e4ed1c
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
#define REG_RESERVED(reg) REG(reg, REG_RESERVED_ADDR) #define REG_RESERVED(reg) REG(reg, REG_RESERVED_ADDR)
#define for_each_stat(ocelot, stat) \ #define for_each_stat(ocelot, stat) \
for ((stat) = ocelot->stats_layout; \ for ((stat) = (ocelot)->stats_layout; \
((stat)->name[0] != '\0'); \ ((stat)->name[0] != '\0'); \
(stat)++) (stat)++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment