]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72ff5d530c68eb7f7015fae81cea2c3793ecf7f2
tree326cee612ad19a2a1c3f179b97f7e464e91e419a
parentf4d238ce197e03e2c44b82ff93680e78f0533cdc
net: mscc: ocelot: remove unnecessary variable

Commit e89a3a34518c ("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