mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
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>
This commit is contained in:
parent
13874e4b23
commit
d6f5cc091b
1 changed files with 0 additions and 1 deletions
|
@ -852,7 +852,6 @@ ieee80211_tdls_prep_mgmt_packet(struct wiphy *wiphy, struct net_device *dev,
|
|||
*/
|
||||
if ((action_code == WLAN_TDLS_TEARDOWN) &&
|
||||
(sdata->local->hw.flags & IEEE80211_HW_REPORTS_TX_ACK_STATUS)) {
|
||||
struct sta_info *sta = NULL;
|
||||
bool try_resend; /* Should we keep skb for possible resend */
|
||||
|
||||
/* If not sending directly to peer - no point in keeping skb */
|
||||
|
|
Loading…
Reference in a new issue