aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-01-23 05:36:54 -0500
committerJohannes Berg <johannes.berg@intel.com>2015-01-23 05:37:44 -0500
commitd6f5cc091b04c4364c7cd928cef3dff21e2bef55 (patch)
tree9f440775e578c5bdf7dd96766d4a39b3f300a31a /net/mac80211
parent13874e4b23de83899cc2d48011a98e42347c67cb (diff)
mac80211: tdls: remove shadowing variable
There's no need to use another local 'sta' variable as the original (outer scope) one isn't needed any more and has become invalid anyway when exiting the RCU read section. Remove the inner scope one and along with it the useless NULL initialization. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/tdls.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/mac80211/tdls.c b/net/mac80211/tdls.c
index 917088dfd696..80b66ce9157b 100644
--- a/net/mac80211/tdls.c
+++ b/net/mac80211/tdls.c
@@ -852,7 +852,6 @@ ieee80211_tdls_prep_mgmt_packet(struct wiphy *wiphy, struct net_device *dev,
852 */ 852 */
853 if ((action_code == WLAN_TDLS_TEARDOWN) && 853 if ((action_code == WLAN_TDLS_TEARDOWN) &&
854 (sdata->local->hw.flags & IEEE80211_HW_REPORTS_TX_ACK_STATUS)) { 854 (sdata->local->hw.flags & IEEE80211_HW_REPORTS_TX_ACK_STATUS)) {
855 struct sta_info *sta = NULL;
856 bool try_resend; /* Should we keep skb for possible resend */ 855 bool try_resend; /* Should we keep skb for possible resend */
857 856
858 /* If not sending directly to peer - no point in keeping skb */ 857 /* If not sending directly to peer - no point in keeping skb */