net/mlx5: E-Switch, Remove redundant check
authorRoi Dayan <roid@nvidia.com>
Thu, 23 Mar 2023 08:01:38 +0000 (10:01 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 19 May 2023 17:50:29 +0000 (10:50 -0700)
commit2abe501751ed8dbd390be5c2f8d51125e3662814
tree464bcb7c446b8725a216b68228c0693307092bd5
parentc511822fe2c96478d86b6bc3404bb45ebad7556b
net/mlx5: E-Switch, Remove redundant check

The call to mlx5_eswitch_enable() also does the same check
and if E-Switch not supported it returns 0 without any change.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/sriov.c