net: mscc: ocelot: remove unnecessary variable
authorColin Foster <colin.foster@in-advantage.com>
Sat, 30 Apr 2022 23:23:26 +0000 (16:23 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 2 May 2022 21:04:17 +0000 (14:04 -0700)
commit05e4ed1ce585637958c8ad6121999dc3109633ad
tree326cee612ad19a2a1c3f179b97f7e464e91e419a
parentc5f50500a0270ee1618373baa85a0bac9a0dc4bf
net: mscc: ocelot: remove unnecessary variable

Commit 2f187bfa6f35 ("net: ethernet: ocelot: remove the need for num_stats
initializer") added a flags field to the ocelot stats structure. The same
behavior can be achieved without this additional field taking up extra
memory.

Remove this structure element to free up RAM

Suggested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
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>
include/soc/mscc/ocelot.h