summaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/ctcm_fsms.c
diff options
context:
space:
mode:
authorHans Wippel2017-04-07 09:15:37 +0200
committerDavid S. Miller2017-04-07 14:52:51 +0200
commit5cd77c135627f8d2b24df6d3487b3ac9219ed1a4 (patch)
treef2b954b51a048c4e323fdeee85f5d25ab78ba527 /drivers/s390/net/ctcm_fsms.c
parents390/qeth: improve endianness handling (diff)
downloadkernel-qcow2-linux-5cd77c135627f8d2b24df6d3487b3ac9219ed1a4.tar.gz
kernel-qcow2-linux-5cd77c135627f8d2b24df6d3487b3ac9219ed1a4.tar.xz
kernel-qcow2-linux-5cd77c135627f8d2b24df6d3487b3ac9219ed1a4.zip
s390/ctcm: improve endianness handling
Use endianness conversions for SKB protocol assignments and usage to avoid endianness warnings reported by sparse. No functional changes. 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/ctcm_fsms.c')
-rw-r--r--drivers/s390/net/ctcm_fsms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/ctcm_fsms.c b/drivers/s390/net/ctcm_fsms.c
index fd5944bbe224..730d9619400e 100644
--- a/drivers/s390/net/ctcm_fsms.c
+++ b/drivers/s390/net/ctcm_fsms.c
@@ -1283,7 +1283,7 @@ static void ctcmpc_chx_txdone(fsm_instance *fi, int event, void *arg)
p_header = (struct pdu *)
(skb_tail_pointer(ch->trans_skb) - skb->len);
p_header->pdu_flag = 0x00;
- if (skb->protocol == ntohs(ETH_P_SNAP))
+ if (be16_to_cpu(skb->protocol) == ETH_P_SNAP)
p_header->pdu_flag |= 0x60;
else
p_header->pdu_flag |= 0x20;