From: Mohammed Gamal Date: Mon, 24 Jul 2017 17:57:26 +0000 (-0700) Subject: netvsc: Remove redundant use of ipv6_hdr() X-Git-Tag: v4.14-rc1~130^2~447^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37b9dfa0d833227bc65353eec9dd0b00e1545a00;p=platform%2Fkernel%2Flinux-rpi3.git 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: Mohammed Gamal Signed-off-by: David S. Miller --- diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 70b7cc3..c266d42 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -339,7 +339,7 @@ static u32 net_checksum_info(struct sk_buff *skb) if (ip6->nexthdr == IPPROTO_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; }