Commit 978015f7 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Saeed Mahameed
Browse files

net/mlx5e: Remove a useless function call



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

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent e71383fb
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;