projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dad03c
)
staging: wilc1000: Fix endian sparse warning
author
Mike Kofron
<mpkofron@gmail.com>
Thu, 29 Dec 2016 21:35:48 +0000
(16:35 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 15:50:37 +0000
(16:50 +0100)
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>
drivers/staging/wilc1000/linux_wlan.c
patch
|
blob
|
history
diff --git
a/drivers/staging/wilc1000/linux_wlan.c
b/drivers/staging/wilc1000/linux_wlan.c
index 3775706578b2e5779def5b9e153c2f98cec25006..185fcd15faa7ed9b0a027a558d921536b14c4e76 100644
(file)
--- a/
drivers/staging/wilc1000/linux_wlan.c
+++ b/
drivers/staging/wilc1000/linux_wlan.c
@@
-992,7
+992,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));