staging:wlan-ng:Fix sparse warning
This patch fixes the sparse warning - drivers/staging/wlan-ng/p80211netdev.c:289:38: warning: cast to restricted __le16 by eliminating the variable fc as it is not required. Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
This commit is contained in:
parent
c0cfe01fbc
commit
7ad8257234
1 changed files with 1 additions and 3 deletions
|
@ -262,7 +262,6 @@ static void p80211netdev_rx_bh(unsigned long arg)
|
||||||
struct sk_buff *skb = NULL;
|
struct sk_buff *skb = NULL;
|
||||||
netdevice_t *dev = wlandev->netdev;
|
netdevice_t *dev = wlandev->netdev;
|
||||||
struct p80211_hdr_a3 *hdr;
|
struct p80211_hdr_a3 *hdr;
|
||||||
u16 fc;
|
|
||||||
|
|
||||||
/* Let's empty our our queue */
|
/* Let's empty our our queue */
|
||||||
while ((skb = skb_dequeue(&wlandev->nsd_rxq))) {
|
while ((skb = skb_dequeue(&wlandev->nsd_rxq))) {
|
||||||
|
@ -286,8 +285,7 @@ static void p80211netdev_rx_bh(unsigned long arg)
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
hdr = (struct p80211_hdr_a3 *) skb->data;
|
hdr = (struct p80211_hdr_a3 *) skb->data;
|
||||||
fc = le16_to_cpu(hdr->fc);
|
if (p80211_rx_typedrop(wlandev, hdr->fc)) {
|
||||||
if (p80211_rx_typedrop(wlandev, fc)) {
|
|
||||||
dev_kfree_skb(skb);
|
dev_kfree_skb(skb);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue