diff options
author | Colin Foster <colin.foster@in-advantage.com> | 2022-05-01 01:23:27 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-05-02 23:04:17 +0200 |
commit | 8c5b07da9bc8c056a3ddca00b4e268358f643343 (patch) | |
tree | 64cf0210b38b34e2522cda87b23af36c3cf8a07a /include/soc/mscc | |
parent | net: mscc: ocelot: remove unnecessary variable (diff) | |
download | linux-8c5b07da9bc8c056a3ddca00b4e268358f643343.tar.xz linux-8c5b07da9bc8c056a3ddca00b4e268358f643343.zip |
net: mscc: ocelot: add missed parentheses around macro argument
Commit 2f187bfa6f35 ("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: 2f187bfa6f35 ("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>
Diffstat (limited to 'include/soc/mscc')
-rw-r--r-- | include/soc/mscc/ocelot.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/soc/mscc/ocelot.h b/include/soc/mscc/ocelot.h index 75739766244b..8d8d46778f7e 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)++) |