forked from Minki/linux
net: mscc: ocelot: add missed parentheses around macro argument
Commit2f187bfa6f
("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:2f187bfa6f
("net: ethernet: ocelot: remove the need for num_stats initializer") Signed-off-by: Colin Foster <colin.foster@in-advantage.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
05e4ed1ce5
commit
8c5b07da9b
@ -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)++)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user