summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv
diff options
context:
space:
mode:
authorMohammed Gamal <mgamal@redhat.com>2017-07-24 19:57:26 +0200
committerDavid S. Miller <davem@davemloft.net>2017-07-25 02:38:28 +0200
commit37b9dfa0d833227bc65353eec9dd0b00e1545a00 (patch)
treea2b17df12964b1b2cd891c9166f00830f57da7bf /drivers/net/hyperv
parentnetvsc: remove bogus rtnl_unlock (diff)
downloadlinux-37b9dfa0d833227bc65353eec9dd0b00e1545a00.tar.xz
linux-37b9dfa0d833227bc65353eec9dd0b00e1545a00.zip
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 <mgamal@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv')
-rw-r--r--drivers/net/hyperv/netvsc_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index 70b7cc37103c..c266d427f934 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;
}