net/mlx5: Remove useless kfree
After alloc fail, we do not need to kfree. Signed-off-by: Haowen Bai <baihaowen@meizu.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
c389362096
commit
7134c60281
@ -1812,7 +1812,6 @@ __mlx5_tc_ct_flow_offload(struct mlx5_tc_ct_priv *ct_priv,
|
|||||||
|
|
||||||
ct_flow = kzalloc(sizeof(*ct_flow), GFP_KERNEL);
|
ct_flow = kzalloc(sizeof(*ct_flow), GFP_KERNEL);
|
||||||
if (!ct_flow) {
|
if (!ct_flow) {
|
||||||
kfree(ct_flow);
|
|
||||||
return ERR_PTR(-ENOMEM);
|
return ERR_PTR(-ENOMEM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user