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:
afb5bb5
)
[IPV6]: remove useless test in ip6_append_data
author
Dave Jones
<davej@redhat.com>
Tue, 21 Mar 2006 06:44:52 +0000
(22:44 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 21 Mar 2006 06:44:52 +0000
(22:44 -0800)
We've already dereferenced 'np' a dozen
times at this point, so it's safe to say it's not null.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c
patch
|
blob
|
history
diff --git
a/net/ipv6/ip6_output.c
b/net/ipv6/ip6_output.c
index 7fefd999846679359a7d7afd9612eb2a83505bdd..4fbc40b13f19466f53e5d0ee0755faa8fd2466ed 100644
(file)
--- a/
net/ipv6/ip6_output.c
+++ b/
net/ipv6/ip6_output.c
@@
-890,7
+890,7
@@
int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
np->cork.hop_limit = hlimit;
np->cork.tclass = tclass;
mtu = dst_mtu(rt->u.dst.path);
- if (np
&& np
->frag_size < mtu) {
+ if (np->frag_size < mtu) {
if (np->frag_size)
mtu = np->frag_size;
}