提交 a80cc20d 编写于 作者: Y YOSHIFUJI Hideaki 提交者: David S. Miller

[IPV4] TCPMD5: Omit redundant NULL check for kfree() argument.

Signed-off-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 53438e5d
......@@ -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++;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册