mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
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:
parent
e71383fb9c
commit
978015f7ef
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user