net/mlx5e: Remove a useless function call

'handle' is known to be NULL here. There is no need to kfree() it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
Christophe JAILLET 2023-05-29 10:34:59 +02:00 committed by Saeed Mahameed
parent e71383fb9c
commit 978015f7ef

View File

@ -112,10 +112,8 @@ mlx5e_tc_post_act_add(struct mlx5e_post_act *post_act, struct mlx5_flow_attr *po
int err;
handle = kzalloc(sizeof(*handle), GFP_KERNEL);
if (!handle) {
kfree(handle);
if (!handle)
return ERR_PTR(-ENOMEM);
}
post_attr->chain = 0;
post_attr->prio = 0;