mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-30 18:10:59 -04:00
net/mlx5: Remove redundant check of mlx5_vhca_event_supported()
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>
This commit is contained in:
committed by
Saeed Mahameed
parent
88074d81e5
commit
b63f8bde2f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user