net/mlx5: E-Switch, remove redundant error handling
authorSaeed Mahameed <saeedm@mellanox.com>
Mon, 29 Jul 2019 21:13:08 +0000 (21:13 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 1 Aug 2019 18:14:25 +0000 (11:14 -0700)
commit9ddb830a14dbd88308354d27cd17009fc97d3a6f
tree528cd73da855c1c5d673db56cbaeff690d72573a
parent5019833d661f5edb6bd63abd3da064d2517966b4
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>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c