Commit 7134c602 authored by Haowen Bai's avatar Haowen Bai Committed by Saeed Mahameed
Browse files

net/mlx5: Remove useless kfree



After alloc fail, we do not need to kfree.

Signed-off-by: default avatarHaowen Bai <baihaowen@meizu.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent c3893620
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1812,7 +1812,6 @@ __mlx5_tc_ct_flow_offload(struct mlx5_tc_ct_priv *ct_priv,

	ct_flow = kzalloc(sizeof(*ct_flow), GFP_KERNEL);
	if (!ct_flow) {
		kfree(ct_flow);
		return ERR_PTR(-ENOMEM);
	}