diff options
author | Colin Foster <colin.foster@in-advantage.com> | 2022-11-20 00:14:04 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-11-22 15:36:43 +0100 |
commit | 33d5eeb9a684a2e962ca0be3fe557a2c9f48d8e2 (patch) | |
tree | 4cbb0fcae275a2ce6c19fcf819be67181d1e4a7a /drivers/net/dsa/ocelot/felix.c | |
parent | selftests: net: Add cross-compilation support for BPF programs (diff) | |
download | linux-33d5eeb9a684a2e962ca0be3fe557a2c9f48d8e2.tar.xz linux-33d5eeb9a684a2e962ca0be3fe557a2c9f48d8e2.zip |
net: mscc: ocelot: remove redundant stats_layout pointers
Ever since commit 4d1d157fb6a4 ("net: mscc: ocelot: share the common stat
definitions between all drivers") the stats_layout entry in ocelot and
felix drivers have become redundant. Remove the unnecessary code.
Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/dsa/ocelot/felix.c')
-rw-r--r-- | drivers/net/dsa/ocelot/felix.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/dsa/ocelot/felix.c b/drivers/net/dsa/ocelot/felix.c index 44e160f32067..3b738cb2ae6e 100644 --- a/drivers/net/dsa/ocelot/felix.c +++ b/drivers/net/dsa/ocelot/felix.c @@ -1363,7 +1363,6 @@ static int felix_init_structs(struct felix *felix, int num_phys_ports) return -ENOMEM; ocelot->map = felix->info->map; - ocelot->stats_layout = felix->info->stats_layout; ocelot->num_mact_rows = felix->info->num_mact_rows; ocelot->vcap = felix->info->vcap; ocelot->vcap_pol.base = felix->info->vcap_pol_base; |