mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-04-01 03:44:08 +00:00
[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
1 changed files with 1 additions and 2 deletions
|
@ -900,8 +900,7 @@ int tcp_v4_md5_do_add(struct sock *sk, __be32 addr,
|
||||||
sizeof(*keys) * md5sig->entries4);
|
sizeof(*keys) * md5sig->entries4);
|
||||||
|
|
||||||
/* Free old key list, and reference new one */
|
/* Free old key list, and reference new one */
|
||||||
if (md5sig->keys4)
|
kfree(md5sig->keys4);
|
||||||
kfree(md5sig->keys4);
|
|
||||||
md5sig->keys4 = keys;
|
md5sig->keys4 = keys;
|
||||||
md5sig->alloced4++;
|
md5sig->alloced4++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue