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
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue