aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-01-31 19:19:48 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-02-04 12:57:46 -0500
commit9537f227b44762591a5598b79522789c573d34b3 (patch)
treed99cb4fcc120664daebf34faf138342225dcf349 /net/wireless
parent4b1af4792a2aa686483fc9bb2155f7269fa6399c (diff)
cfg80211: remove a local variable
This local variable is only used once, so remove it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/scan.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index a56287bb550c..23b7e59c6506 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -583,16 +583,15 @@ cfg80211_bss_update(struct cfg80211_registered_device *dev,
583 kfree_rcu((struct cfg80211_bss_ies *)old, 583 kfree_rcu((struct cfg80211_bss_ies *)old,
584 rcu_head); 584 rcu_head);
585 } else if (rcu_access_pointer(tmp->pub.beacon_ies)) { 585 } else if (rcu_access_pointer(tmp->pub.beacon_ies)) {
586 const struct cfg80211_bss_ies *old, *ies; 586 const struct cfg80211_bss_ies *old;
587 587
588 old = rcu_access_pointer(found->pub.beacon_ies); 588 old = rcu_access_pointer(found->pub.beacon_ies);
589 ies = rcu_access_pointer(found->pub.ies);
590 589
591 rcu_assign_pointer(found->pub.beacon_ies, 590 rcu_assign_pointer(found->pub.beacon_ies,
592 tmp->pub.beacon_ies); 591 tmp->pub.beacon_ies);
593 592
594 /* Override IEs if they were from a beacon before */ 593 /* Override IEs if they were from a beacon before */
595 if (old == ies) 594 if (old == rcu_access_pointer(found->pub.ies))
596 rcu_assign_pointer(found->pub.ies, 595 rcu_assign_pointer(found->pub.ies,
597 tmp->pub.beacon_ies); 596 tmp->pub.beacon_ies);
598 597