diff options
author | Hans Wippel <hwippel@linux.vnet.ibm.com> | 2017-04-07 10:15:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-07 15:52:51 +0300 |
commit | 5cd77c135627f8d2b24df6d3487b3ac9219ed1a4 (patch) | |
tree | f2b954b51a048c4e323fdeee85f5d25ab78ba527 /drivers/s390/net/ctcm_fsms.c | |
parent | 6bee4e26a39c51ffe698072ded1f5ab2062e4225 (diff) | |
download | linux-5cd77c135627f8d2b24df6d3487b3ac9219ed1a4.tar.xz |
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.c | 2 |
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; |