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>
This commit is contained in:
Ido Schimmel 2021-09-15 13:13:09 +03:00 committed by David S. Miller
parent bd6e43f595
commit 06277ca238

View File

@ -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,