projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53438e5
)
[IPV4] TCPMD5: Omit redundant NULL check for kfree() argument.
author
YOSHIFUJI Hideaki
<yoshfuji@linux-ipv6.org>
Wed, 21 Nov 2007 01:30:06 +0000
(17:30 -0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 21 Nov 2007 01:30:06 +0000
(17:30 -0800)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c
patch
|
blob
|
history
diff --git
a/net/ipv4/tcp_ipv4.c
b/net/ipv4/tcp_ipv4.c
index e566f3c676772d6a7141bb50213d7eb0430135d3..ff360968b9103832054a7b2b0c8739fde66ffba6 100644
(file)
--- 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++;
}