Commit 6c37c60c authored by Hans Wippel's avatar Hans Wippel Committed by David S. Miller

s390/netiucv: improve endianness handling

Replace ntohs with endianness conversion for the SKB protocol assignment
to avoid an endianness warning reported by sparse. No functional change.
Signed-off-by: default avatarHans Wippel <hwippel@linux.vnet.ibm.com>
Signed-off-by: default avatarUrsula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5cd77c13
...@@ -635,7 +635,7 @@ static void netiucv_unpack_skb(struct iucv_connection *conn, ...@@ -635,7 +635,7 @@ static void netiucv_unpack_skb(struct iucv_connection *conn,
skb_put(pskb, NETIUCV_HDRLEN); skb_put(pskb, NETIUCV_HDRLEN);
pskb->dev = dev; pskb->dev = dev;
pskb->ip_summed = CHECKSUM_NONE; pskb->ip_summed = CHECKSUM_NONE;
pskb->protocol = ntohs(ETH_P_IP); pskb->protocol = cpu_to_be16(ETH_P_IP);
while (1) { while (1) {
struct sk_buff *skb; struct sk_buff *skb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment