]> 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)
commitbd5b5dbfd662589d4642917ef3858c9d488ecfe8
tree326cee612ad19a2a1c3f179b97f7e464e91e419a
parent2a634d85f424782ea815dd635f1f1a1b5242c4a0
net: mscc: ocelot: remove unnecessary variable

Commit 0e9b1886d08c ("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