summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2006-03-20 22:44:52 -0800
committerDavid S. Miller <davem@davemloft.net>2006-03-20 22:44:52 -0800
commitc750360938b403e6cc193d293cfbcb099dd6c60e (patch)
treeac7b248bb0c9927dc8edd38e8dbc2f35fc12077e /net
parentafb5bb57440f7c419b1214628d32c92293f1cfd4 (diff)
downloadop-kernel-dev-c750360938b403e6cc193d293cfbcb099dd6c60e.zip
op-kernel-dev-c750360938b403e6cc193d293cfbcb099dd6c60e.tar.gz
[IPV6]: remove useless test in ip6_append_data
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>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/ip6_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 7fefd99..4fbc40b 100644
--- 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;
}
OpenPOWER on IntegriCloud