Commit 9ddb830a authored by Saeed Mahameed's avatar Saeed Mahameed
Browse files

net/mlx5: E-Switch, remove redundant error handling



We don't need to handle error flow of esw_create_legacy_table() in the
same branch, it is already being handled directly after the if statement,
for both legacy and switchdev modes in one place.

Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Reviewed-by: default avatarRoi Dayan <roid@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 5019833d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1855,8 +1855,6 @@ int mlx5_eswitch_enable(struct mlx5_eswitch *esw, int mode)

	if (mode == MLX5_ESWITCH_LEGACY) {
		err = esw_create_legacy_table(esw);
		if (err)
			goto abort;
	} else {
		mlx5_reload_interface(esw->dev, MLX5_INTERFACE_PROTOCOL_ETH);
		mlx5_reload_interface(esw->dev, MLX5_INTERFACE_PROTOCOL_IB);