Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7503609 authored by Dave Jones's avatar Dave Jones Committed by David S. Miller
Browse files

[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: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent afb5bb57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}