s390/netiucv: improve endianness handling
authorHans Wippel <hwippel@linux.vnet.ibm.com>
Fri, 7 Apr 2017 07:15:38 +0000 (09:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Apr 2017 12:52:51 +0000 (05:52 -0700)
Replace ntohs with endianness conversion for the SKB protocol assignment
to avoid an endianness warning reported by sparse. No functional change.

Signed-off-by: Hans Wippel <hwippel@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/netiucv.c

index 3f85b97ab8d2704820ba1f6f038a99534a14461a..dba94b486f057822ba45d29bea1589adb4026ea5 100644 (file)
@@ -635,7 +635,7 @@ static void netiucv_unpack_skb(struct iucv_connection *conn,
        skb_put(pskb, NETIUCV_HDRLEN);
        pskb->dev = dev;
        pskb->ip_summed = CHECKSUM_NONE;
-       pskb->protocol = ntohs(ETH_P_IP);
+       pskb->protocol = cpu_to_be16(ETH_P_IP);
 
        while (1) {
                struct sk_buff *skb;