mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 15:47:36 +00:00
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>
This commit is contained in:
parent
fd763ad96a
commit
37b9dfa0d8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue