Skip to content

Commit

Permalink
mac80211: remove unneed variable from ieee80211_tx_pending()
Browse files Browse the repository at this point in the history
We don't need "sdata" any more after:
	d84f323
	mac80211: remove dev_hold/put calls

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Mar 24, 2010
1 parent 4ac5541 commit 14b4497
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2010,14 +2010,12 @@ void ieee80211_tx_pending(unsigned long data)
while (!skb_queue_empty(&local->pending[i])) {
struct sk_buff *skb = __skb_dequeue(&local->pending[i]);
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
struct ieee80211_sub_if_data *sdata;

if (WARN_ON(!info->control.vif)) {
kfree_skb(skb);
continue;
}

sdata = vif_to_sdata(info->control.vif);
spin_unlock_irqrestore(&local->queue_stop_reason_lock,
flags);

Expand Down

0 comments on commit 14b4497

Please sign in to comment.