net/mlx5: Remove redundant check of mlx5_vhca_event_supported()
authorJiri Pirko <jiri@nvidia.com>
Fri, 30 Jun 2023 07:41:14 +0000 (09:41 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 14 Aug 2023 21:40:21 +0000 (14:40 -0700)
Since mlx5_vhca_event_supported() is called in mlx5_sf_dev_supported(),
remove the redundant call.

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/sf/dev/dev.c

index 39132a6..e617a27 100644 (file)
@@ -299,7 +299,7 @@ void mlx5_sf_dev_table_create(struct mlx5_core_dev *dev)
        unsigned int max_sfs;
        int err;
 
-       if (!mlx5_sf_dev_supported(dev) || !mlx5_vhca_event_supported(dev))
+       if (!mlx5_sf_dev_supported(dev))
                return;
 
        table = kzalloc(sizeof(*table), GFP_KERNEL);