projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd763ad
)
netvsc: Remove redundant use of ipv6_hdr()
author
Mohammed Gamal
<mgamal@redhat.com>
Mon, 24 Jul 2017 17:57:26 +0000
(10:57 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 25 Jul 2017 00:38:28 +0000
(17:38 -0700)
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>
drivers/net/hyperv/netvsc_drv.c
patch
|
blob
|
history
diff --git
a/drivers/net/hyperv/netvsc_drv.c
b/drivers/net/hyperv/netvsc_drv.c
index 70b7cc37103c6422e6e34e317b7be89f53d25baf..c266d427f934dc0552143fa5440c0b309fd7d351 100644
(file)
--- 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 (ip
v6_hdr(skb)
->nexthdr == IPPROTO_UDP)
+ else if (ip
6
->nexthdr == IPPROTO_UDP)
return TRANSPORT_INFO_IPV6_UDP;
}