projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd6e43f
)
mlxsw: spectrum: Do not return an error in ndo_stop()
author
Ido Schimmel
<idosch@nvidia.com>
Wed, 15 Sep 2021 10:13:09 +0000
(13:13 +0300)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c
index
9cbc893
..
976d7e1
100644
(file)
--- 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,