mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02: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:
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user