mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
staging: wilc1000: Fix endian sparse warning
[ Upstream commit 94500d5667 ]
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ca24e702cc
commit
1f5a7caba7
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user