diff options
author | Ido Schimmel <idosch@nvidia.com> | 2021-09-15 13:13:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-15 16:17:15 +0100 |
commit | 06277ca23868d3e1ce9d09650f2cf14abc6b69be (patch) | |
tree | 796158a3aff6f7980c5892441e016c9f2ea37939 /drivers | |
parent | bd6e43f5953d39d5cb06041d5ae3e9e5470336ef (diff) | |
download | linux-stable-06277ca23868d3e1ce9d09650f2cf14abc6b69be.tar.gz linux-stable-06277ca23868d3e1ce9d09650f2cf14abc6b69be.tar.bz2 linux-stable-06277ca23868d3e1ce9d09650f2cf14abc6b69be.zip |
mlxsw: spectrum: Do not return an error in ndo_stop()
The return value is not checked by the networking stack. Allows us to
simplify a later patch.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c index 9cbc893c2545..976d7e1ecb14 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -577,7 +577,8 @@ static int mlxsw_sp_port_stop(struct net_device *dev) struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); netif_stop_queue(dev); - return mlxsw_sp_port_admin_status_set(mlxsw_sp_port, false); + mlxsw_sp_port_admin_status_set(mlxsw_sp_port, false); + return 0; } static netdev_tx_t mlxsw_sp_port_xmit(struct sk_buff *skb, |