1
0
Fork 0

[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>
hifive-unleashed-5.1
Dave Jones 2006-03-20 22:44:52 -08:00 committed by David S. Miller
parent afb5bb5744
commit c750360938
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}