Commit 82a06429 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

mlxsw: spectrum: fix some error handling

The "err = " assignment is missing here.

Fixes: 0d65fc13 ('mlxsw: spectrum: Implement LAG port join/leave')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9dd2d6c5
...@@ -2091,7 +2091,7 @@ static int mlxsw_sp_port_lag_leave(struct mlxsw_sp_port *mlxsw_sp_port, ...@@ -2091,7 +2091,7 @@ static int mlxsw_sp_port_lag_leave(struct mlxsw_sp_port *mlxsw_sp_port,
err = mlxsw_sp_lag_col_port_disable(mlxsw_sp_port, lag_id); err = mlxsw_sp_lag_col_port_disable(mlxsw_sp_port, lag_id);
if (err) if (err)
return err; return err;
mlxsw_sp_lag_col_port_remove(mlxsw_sp_port, lag_id); err = mlxsw_sp_lag_col_port_remove(mlxsw_sp_port, lag_id);
if (err) if (err)
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment