summaryrefslogtreecommitdiff
path: root/net/mac80211/status.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-01-20 13:52:36 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-01-27 14:56:55 -0500
commit8e7c4e4dc6e98a0d3ee4535c6b94a3ad63adad2a (patch)
tree589946341681ae98ff5d4c8bbc936da6820aa2c4 /net/mac80211/status.c
parentea086359a63bd0dd85c1d784d0425340649613fa (diff)
downloadlinux-stable-8e7c4e4dc6e98a0d3ee4535c6b94a3ad63adad2a.tar.gz
linux-stable-8e7c4e4dc6e98a0d3ee4535c6b94a3ad63adad2a.tar.bz2
linux-stable-8e7c4e4dc6e98a0d3ee4535c6b94a3ad63adad2a.zip
mac80211: fix a few -Wshadow warnings
It seems that -Wshadow is no longer default in sparse runs, but let's fix the warnings anyway. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/status.c')
-rw-r--r--net/mac80211/status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index 30c265c98f73..d67f0b967f8a 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -350,7 +350,6 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
bool send_to_cooked;
bool acked;
struct ieee80211_bar *bar;
- u16 tid;
int rtap_len;
for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) {
@@ -412,7 +411,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
}
if (!acked && ieee80211_is_back_req(fc)) {
- u16 control;
+ u16 tid, control;
/*
* BAR failed, store the last SSN and retry sending
@@ -516,7 +515,8 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
if (ieee80211_is_nullfunc(hdr->frame_control) ||
ieee80211_is_qos_nullfunc(hdr->frame_control)) {
- bool acked = info->flags & IEEE80211_TX_STAT_ACK;
+ acked = info->flags & IEEE80211_TX_STAT_ACK;
+
cfg80211_probe_status(skb->dev, hdr->addr1,
cookie, acked, GFP_ATOMIC);
} else {