mirror of
https://github.com/torvalds/linux.git
synced 2024-11-20 02:51:44 +00:00
ipvs: remove null test before kfree
Fix checkpatch warning: WARNING: kfree(NULL) is safe this check is probably not required Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
parent
24de3d3775
commit
b734427a4f
@ -886,8 +886,7 @@ static void ip_vs_proc_conn(struct net *net, struct ip_vs_conn_param *param,
|
||||
cp = ip_vs_conn_new(param, daddr, dport, flags, dest, fwmark);
|
||||
rcu_read_unlock();
|
||||
if (!cp) {
|
||||
if (param->pe_data)
|
||||
kfree(param->pe_data);
|
||||
kfree(param->pe_data);
|
||||
IP_VS_DBG(2, "BACKUP, add new conn. failed\n");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user