From: YOSHIFUJI Hideaki Date: Wed, 21 Nov 2007 01:30:06 +0000 (-0800) Subject: [IPV4] TCPMD5: Omit redundant NULL check for kfree() argument. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a80cc20da492d9a00b0851a6632dc03fed5d2e30;p=linux-beck.git [IPV4] TCPMD5: Omit redundant NULL check for kfree() argument. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index e566f3c67677..ff360968b910 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -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++; }