summaryrefslogtreecommitdiff
path: root/include/linux/trace_recursion.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2023-06-28 13:19:05 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2023-09-19 23:33:07 -0700
commit7c35cd836f21acbb1141e03bca737c7e6ddd768a (patch)
tree8a8d6fb45282d0c96e789441d518283b17400a11 /include/linux/trace_recursion.h
parent2fe6545ef541bff33362bcce9214e9e390ca34b9 (diff)
net/mlx5: Remove redundant max_sfs check and field from struct mlx5_sf_dev_table
table->max_sfs is initialized in mlx5_sf_dev_table_create() and only used to check for 0 in mlx5_sf_dev_add(). mlx5_sf_dev_add() is called either from mlx5_sf_dev_state_change_handler() or mlx5_sf_dev_add_active_work(). Both ensure max SF count is not 0, using mlx5_sf_max_functions() helper before calling mlx5_sf_dev_add(). So remove the redundant check and no longer used max_sfs field. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Shay Drory <shayd@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'include/linux/trace_recursion.h')
0 files changed, 0 insertions, 0 deletions