Skip to content

Commit 6c37c60

Browse files
Hans Wippeldavem330
authored andcommitted
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>
1 parent 5cd77c1 commit 6c37c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/s390/net/netiucv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ static void netiucv_unpack_skb(struct iucv_connection *conn,
635635
skb_put(pskb, NETIUCV_HDRLEN);
636636
pskb->dev = dev;
637637
pskb->ip_summed = CHECKSUM_NONE;
638-
pskb->protocol = ntohs(ETH_P_IP);
638+
pskb->protocol = cpu_to_be16(ETH_P_IP);
639639

640640
while (1) {
641641
struct sk_buff *skb;

0 commit comments

Comments
 (0)