Commit 5479d0e7 authored by Tomas Winkler's avatar Tomas Winkler Committed by John W. Linville

mac80211: fix warning: unused variable invoke_tx_handlers

This patch fixes warning: unused variable in invoke_tx_handlers
when compiling without MAC80211_DEBUG option
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7cd8d3ea
...@@ -1110,7 +1110,6 @@ static int __ieee80211_tx(struct ieee80211_local *local, struct sk_buff *skb, ...@@ -1110,7 +1110,6 @@ static int __ieee80211_tx(struct ieee80211_local *local, struct sk_buff *skb,
*/ */
static int invoke_tx_handlers(struct ieee80211_tx_data *tx) static int invoke_tx_handlers(struct ieee80211_tx_data *tx)
{ {
struct ieee80211_local *local = tx->local;
struct sk_buff *skb = tx->skb; struct sk_buff *skb = tx->skb;
ieee80211_tx_handler *handler; ieee80211_tx_handler *handler;
ieee80211_tx_result res = TX_DROP; ieee80211_tx_result res = TX_DROP;
...@@ -1123,7 +1122,7 @@ static int invoke_tx_handlers(struct ieee80211_tx_data *tx) ...@@ -1123,7 +1122,7 @@ static int invoke_tx_handlers(struct ieee80211_tx_data *tx)
} }
if (unlikely(res == TX_DROP)) { if (unlikely(res == TX_DROP)) {
I802_DEBUG_INC(local->tx_handlers_drop); I802_DEBUG_INC(tx->local->tx_handlers_drop);
dev_kfree_skb(skb); dev_kfree_skb(skb);
for (i = 0; i < tx->num_extra_frag; i++) for (i = 0; i < tx->num_extra_frag; i++)
if (tx->extra_frag[i]) if (tx->extra_frag[i])
...@@ -1131,7 +1130,7 @@ static int invoke_tx_handlers(struct ieee80211_tx_data *tx) ...@@ -1131,7 +1130,7 @@ static int invoke_tx_handlers(struct ieee80211_tx_data *tx)
kfree(tx->extra_frag); kfree(tx->extra_frag);
return -1; return -1;
} else if (unlikely(res == TX_QUEUED)) { } else if (unlikely(res == TX_QUEUED)) {
I802_DEBUG_INC(local->tx_handlers_queued); I802_DEBUG_INC(tx->local->tx_handlers_queued);
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment