OSDN Git Service

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)
commit6c37c60c2d3cd064b5abe838a0d5dc6255ea36fa
treef043c7c84fd33ab1402c0035b7d86c4c3aaa41a4
parent5cd77c135627f8d2b24df6d3487b3ac9219ed1a4
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>
drivers/s390/net/netiucv.c