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

Commit 069048f1 authored by Shahed Shaikh's avatar Shahed Shaikh Committed by David S. Miller
Browse files

qlcnic: Fix sparse check endian warnings

parent 409cc1f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1018,7 +1018,7 @@ qlcnic_process_lro(struct qlcnic_adapter *adapter,

	skb->protocol = eth_type_trans(skb, netdev);

	if (htons(skb->protocol) == ETH_P_IPV6) {
	if (ntohs(skb->protocol) == ETH_P_IPV6) {
		ipv6h = (struct ipv6hdr *)skb->data;
		th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr));
		length = (th->doff << 2) + lro_length;