diff options
author | Hans Wippel <hwippel@linux.vnet.ibm.com> | 2017-04-07 09:15:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-07 14:52:51 +0200 |
commit | 6c37c60c2d3cd064b5abe838a0d5dc6255ea36fa (patch) | |
tree | f043c7c84fd33ab1402c0035b7d86c4c3aaa41a4 /drivers/s390/net | |
parent | s390/ctcm: improve endianness handling (diff) | |
download | linux-6c37c60c2d3cd064b5abe838a0d5dc6255ea36fa.tar.xz linux-6c37c60c2d3cd064b5abe838a0d5dc6255ea36fa.zip |
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: 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>
Diffstat (limited to 'drivers/s390/net')
-rw-r--r-- | drivers/s390/net/netiucv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c index 3f85b97ab8d2..dba94b486f05 100644 --- a/drivers/s390/net/netiucv.c +++ b/drivers/s390/net/netiucv.c @@ -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; |