forked from Minki/linux
mlxsw: spectrum: fix some error handling
The "err = " assignment is missing here.
Fixes: 0d65fc1304
('mlxsw: spectrum: Implement LAG port join/leave')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9dd2d6c5c9
commit
82a06429ae
@ -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);
|
||||
if (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)
|
||||
return err;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user