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

Commit 37b9dfa0 authored by Mohammed Gamal's avatar Mohammed Gamal Committed by David S. Miller
Browse files

netvsc: Remove redundant use of ipv6_hdr()



This condition already uses an object of type ipv6hdr in the line above.
Use the object directly instead of calling ipv6_hdr

Signed-off-by: default avatarMohammed Gamal <mgamal@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fd763ad9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -339,7 +339,7 @@ static u32 net_checksum_info(struct sk_buff *skb)


		if (ip6->nexthdr == IPPROTO_TCP)
		if (ip6->nexthdr == IPPROTO_TCP)
			return TRANSPORT_INFO_IPV6_TCP;
			return TRANSPORT_INFO_IPV6_TCP;
		else if (ipv6_hdr(skb)->nexthdr == IPPROTO_UDP)
		else if (ip6->nexthdr == IPPROTO_UDP)
			return TRANSPORT_INFO_IPV6_UDP;
			return TRANSPORT_INFO_IPV6_UDP;
	}
	}