diff options
author | Mike Kofron <mpkofron@gmail.com> | 2016-12-29 16:35:48 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-21 09:23:27 +0100 |
commit | 1f5a7caba79eb47207c94bb43c645714bf3e8ebe (patch) | |
tree | 101b886b7411ccf2f1f7927d78d6e7c8390d321f | |
parent | ca24e702ccfa7e4eb5cea019ef85823b394a38d4 (diff) | |
download | linux-stable-1f5a7caba79eb47207c94bb43c645714bf3e8ebe.tar.gz linux-stable-1f5a7caba79eb47207c94bb43c645714bf3e8ebe.tar.bz2 linux-stable-1f5a7caba79eb47207c94bb43c645714bf3e8ebe.zip |
staging: wilc1000: Fix endian sparse warning
[ Upstream commit 94500d5667386119c27725fe314f6882f68580a9 ]
drivers/staging/wilc1000/linux_wlan.c:995:18: warning: restricted __be16 degrades to integer
Signed-off-by: Mike Kofron <mpkofron@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/wilc1000/linux_wlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index defffa75ae1c..07d6e4824a9d 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -1001,7 +1001,7 @@ int wilc_mac_xmit(struct sk_buff *skb, struct net_device *ndev) tx_data->skb = skb; eth_h = (struct ethhdr *)(skb->data); - if (eth_h->h_proto == 0x8e88) + if (eth_h->h_proto == cpu_to_be16(0x8e88)) netdev_dbg(ndev, "EAPOL transmitted\n"); ih = (struct iphdr *)(skb->data + sizeof(struct ethhdr)); |