diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2020-12-08 08:52:17 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2020-12-08 08:52:17 +0300 |
commit | c8bb4520543823a9b3da3861304273dc7232e2c7 (patch) | |
tree | 26670815d56dfc89fbe55e77c8e987324b70f95f /drivers/net/dsa/qca8k.c | |
parent | f45f89a778e8a61d9c79405e8c716058b6ba12f2 (diff) | |
parent | f9b0498d29404f230894490d622e57e481c7d45a (diff) | |
download | linux-c8bb4520543823a9b3da3861304273dc7232e2c7.tar.xz |
Merge branch 'cpufreq/scmi' into cpufreq/arm/linux-next
Diffstat (limited to 'drivers/net/dsa/qca8k.c')
-rw-r--r-- | drivers/net/dsa/qca8k.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/dsa/qca8k.c b/drivers/net/dsa/qca8k.c index 53064e0e1618..5bdac669a339 100644 --- a/drivers/net/dsa/qca8k.c +++ b/drivers/net/dsa/qca8k.c @@ -1219,8 +1219,8 @@ qca8k_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu) priv->port_mtu[port] = new_mtu; for (i = 0; i < QCA8K_NUM_PORTS; i++) - if (priv->port_mtu[port] > mtu) - mtu = priv->port_mtu[port]; + if (priv->port_mtu[i] > mtu) + mtu = priv->port_mtu[i]; /* Include L2 header / FCS length */ qca8k_write(priv, QCA8K_MAX_FRAME_SIZE, mtu + ETH_HLEN + ETH_FCS_LEN); |