Skip to content

Commit 0d0946d

Browse files
Jiri PirkoSaeed Mahameed
authored andcommitted
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>
1 parent 61955da commit 0d0946d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • drivers/net/ethernet/mellanox/mlx5/core

drivers/net/ethernet/mellanox/mlx5/core/dev.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,6 @@ static bool is_ib_rep_supported(struct mlx5_core_dev *dev)
151151
if (!is_eth_rep_supported(dev))
152152
return false;
153153

154-
if (!is_mdev_switchdev_mode(dev))
155-
return false;
156-
157154
if (mlx5_core_mp_enabled(dev))
158155
return false;
159156

0 commit comments

Comments
 (0)