net/mlx5: Remove redundant SF supported check from mlx5_sf_hw_table_init()
authorJiri Pirko <jiri@nvidia.com>
Fri, 30 Jun 2023 07:32:14 +0000 (09:32 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 14 Aug 2023 21:40:21 +0000 (14:40 -0700)
commitae80d7a06fdb0b34a0f2842e1aac3da3bde93ccb
treebf5594dc9ddb884dd85e2c5097548ddfbed10d1e
parent2ad0160c02be2a56bd80aaeb5c40221250814c25
net/mlx5: Remove redundant SF supported check from mlx5_sf_hw_table_init()

Since mlx5_sf_supported() check is done as a first thing in
mlx5_sf_max_functions(), remove the redundant check.

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/hw_table.c