mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 08:04:24 -04:00
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>
This commit is contained in:
committed by
Saeed Mahameed
parent
15ddd72ee3
commit
61955da523
@@ -151,9 +151,6 @@ static bool is_ib_rep_supported(struct mlx5_core_dev *dev)
|
||||
if (!is_eth_rep_supported(dev))
|
||||
return false;
|
||||
|
||||
if (!MLX5_ESWITCH_MANAGER(dev))
|
||||
return false;
|
||||
|
||||
if (!is_mdev_switchdev_mode(dev))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user