[IPV4] TCPMD5: Omit redundant NULL check for kfree() argument.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
53438e5d04
commit
a80cc20da4
|
@ -900,8 +900,7 @@ int tcp_v4_md5_do_add(struct sock *sk, __be32 addr,
|
|||
sizeof(*keys) * md5sig->entries4);
|
||||
|
||||
/* Free old key list, and reference new one */
|
||||
if (md5sig->keys4)
|
||||
kfree(md5sig->keys4);
|
||||
kfree(md5sig->keys4);
|
||||
md5sig->keys4 = keys;
|
||||
md5sig->alloced4++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue