projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88074d8
)
net/mlx5: Remove redundant check of mlx5_vhca_event_supported()
author
Jiri Pirko
<jiri@nvidia.com>
Fri, 30 Jun 2023 07:41:14 +0000
(09:41 +0200)
committer
Saeed 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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.c
b/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.c
index 39132a6cc68ba2f88e92c9692406c6d9f4e43476..e617a270d74a025238f3e7a97c86912fee3fc7bf 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.c
@@
-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);