aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-07-06 15:18:24 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-07-09 08:49:11 -0400
commit31ee67a1ced64f61e3f8266ddfd820d6ce599da3 (patch)
treed607470922d8e755a75e4364072681b5a81d62c1 /net
parent7d25745d05e7a0f0fb0d5e29bef40cb6326efc96 (diff)
mac80211: remove unused assignment
ieee80211_mlme_notify_scan_completed() iterates all interfaces and doesn't need to assign anything to the sdata variable before the loop. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/mlme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 6eab63388c64..4b503ce893d8 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -2977,7 +2977,7 @@ void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata)
2977/* scan finished notification */ 2977/* scan finished notification */
2978void ieee80211_mlme_notify_scan_completed(struct ieee80211_local *local) 2978void ieee80211_mlme_notify_scan_completed(struct ieee80211_local *local)
2979{ 2979{
2980 struct ieee80211_sub_if_data *sdata = local->scan_sdata; 2980 struct ieee80211_sub_if_data *sdata;
2981 2981
2982 /* Restart STA timers */ 2982 /* Restart STA timers */
2983 rcu_read_lock(); 2983 rcu_read_lock();