net/mlx5: Remove redundant is_mdev_switchdev_mode() check from is_ib_rep_supported()
authorJiri Pirko <jiri@nvidia.com>
Thu, 1 Jun 2023 11:15:12 +0000 (13:15 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 23 Jun 2023 19:27:34 +0000 (12:27 -0700)
commit0d0946d6488e785c30a0c4fce4cf21dc7da6dc1f
tree0ffff8949c48255fd567beca6af8d5c4b5c663d5
parent61955da523d93b4d89f45f84dc6ce9d44ced7bae
net/mlx5: Remove redundant is_mdev_switchdev_mode() check from is_ib_rep_supported()

is_mdev_switchdev_mode() check is done in is_eth_rep_supported().
Function is_ib_rep_supported() calls is_eth_rep_supported().
Remove the redundant check from it.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/dev.c