net/mlx5e: Remove redundant allocation of spec in create indirect fwd group
authorMaor Dickman <maord@nvidia.com>
Sun, 1 Jan 2023 07:06:57 +0000 (09:06 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 18 Jan 2023 18:34:09 +0000 (10:34 -0800)
commit42cd20044e85bca865bc2a639756d1b8e1a858c1
tree223889271bb0bd8115d2979642cc4eb5f5980700
parent521933cdc4aad133b410d8f64b03f60345021138
net/mlx5e: Remove redundant allocation of spec in create indirect fwd group

mlx5_add_flow_rules supports creating rules without any matches by passing NULL
pointer instead of spec, if NULL is passed it will use a static empty spec.
This make allocation of spec in mlx5_create_indir_fwd_group unnecessary.

Remove the redundant allocation.

Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c