mlxsw: spectrum: Do not return an error in ndo_stop()
authorIdo Schimmel <idosch@nvidia.com>
Wed, 15 Sep 2021 10:13:09 +0000 (13:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Sep 2021 15:17:15 +0000 (16:17 +0100)
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c

index 9cbc893..976d7e1 100644 (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,