Skip to content

Commit

Permalink
staging:wlan-ng:Fix sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Himangi Saraogi authored and Peter P Waskiewicz Jr committed Mar 13, 2014
1 parent c0cfe01 commit 7ad8257
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/wlan-ng/p80211netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ static void p80211netdev_rx_bh(unsigned long arg)
struct sk_buff *skb = NULL;
netdevice_t *dev = wlandev->netdev;
struct p80211_hdr_a3 *hdr;
u16 fc;

/* Let's empty our our queue */
while ((skb = skb_dequeue(&wlandev->nsd_rxq))) {
Expand All @@ -286,8 +285,7 @@ static void p80211netdev_rx_bh(unsigned long arg)
continue;
} else {
hdr = (struct p80211_hdr_a3 *) skb->data;
fc = le16_to_cpu(hdr->fc);
if (p80211_rx_typedrop(wlandev, fc)) {
if (p80211_rx_typedrop(wlandev, hdr->fc)) {
dev_kfree_skb(skb);
continue;
}
Expand Down

0 comments on commit 7ad8257

Please sign in to comment.