diff options
author | Saeed Mahameed <saeedm@mellanox.com> | 2019-07-29 23:13:08 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-08-01 20:14:25 +0200 |
commit | 9ddb830a14dbd88308354d27cd17009fc97d3a6f (patch) | |
tree | 528cd73da855c1c5d673db56cbaeff690d72573a /drivers/net | |
parent | net/mlx5: E-switch, Introduce helper function to enable/disable vports (diff) | |
download | linux-9ddb830a14dbd88308354d27cd17009fc97d3a6f.tar.xz linux-9ddb830a14dbd88308354d27cd17009fc97d3a6f.zip |
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: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c index 6d82aefae6e1..17fb982b3489 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c @@ -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); |