mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
5cd77c1356
commit
6c37c60c2d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue