Skip to content

Commit 61955da

Browse files
Jiri PirkoSaeed Mahameed
authored andcommitted
net/mlx5: Remove redundant MLX5_ESWITCH_MANAGER() check from is_ib_rep_supported()
MLX5_ESWITCH_MANAGER() 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 15ddd72 commit 61955da

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 (!MLX5_ESWITCH_MANAGER(dev))
155-
return false;
156-
157154
if (!is_mdev_switchdev_mode(dev))
158155
return false;
159156

0 commit comments

Comments
 (0)