diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-04-15 18:46:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-20 10:34:34 +0100 |
commit | 4715029fa7e9072443af229dcc324e933c83436c (patch) | |
tree | f168eb3d68b24ffd1092c32e53e0448cf8fd60bc /net | |
parent | cf1c39d3b3a583c83fc7e077e1b3689b37187bd2 (diff) | |
download | linux-stable-4715029fa7e9072443af229dcc324e933c83436c.tar.gz linux-stable-4715029fa7e9072443af229dcc324e933c83436c.tar.bz2 linux-stable-4715029fa7e9072443af229dcc324e933c83436c.zip |
net: dsa: drop dsa_slave_priv from dsa_slave_change_mtu
We can get a hold of the "ds" pointer directly from "dp", no need for
the dsa_slave_priv.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/dsa/slave.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 3ff8647be619..bf93d6b38668 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -1806,9 +1806,8 @@ int dsa_slave_change_mtu(struct net_device *dev, int new_mtu) { struct net_device *master = dsa_slave_to_master(dev); struct dsa_port *dp = dsa_slave_to_port(dev); - struct dsa_slave_priv *p = netdev_priv(dev); struct dsa_port *cpu_dp = dp->cpu_dp; - struct dsa_switch *ds = p->dp->ds; + struct dsa_switch *ds = dp->ds; struct dsa_port *other_dp; int largest_mtu = 0; int new_master_mtu; |