Skip to contentSkip to conversation

mlxsw: spectrum: fix some error handling

PATCH Applied Dan Carpenter 3 participants 3 messages Dec 9, 2015 – Dec 12, 2015

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mlxsw: spectrum: fix some error handling

The "err = " assignment is missing here.

Fixes 0d65fc13042f ('mlxsw: spectrum: Implement LAG port join/leave')
drivers/net/ethernet/mellanox/mlxsw/spectrum.c +1 -1
index 3ec07b9..322ed54 100644
@@ -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;