summaryrefslogtreecommitdiffstats
path: root/net/wireless/sysfs.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-02-01 01:04:14 +0100
committerJohannes Berg <johannes.berg@intel.com>2013-02-04 18:57:43 +0100
commit2ca813ad61136896c91a40194452ff665a522711 (patch)
treee1eb791203ddc573a8ac34a9fd0a836dcbc20132 /net/wireless/sysfs.c
parent50521aa8817e3f6a77eb7aaabdbbb7b5c2fe0ea3 (diff)
cfg80211: move locking into cfg80211_bss_age
There's no reason for it to require external locking, move it into the function. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/sysfs.c')
-rw-r--r--net/wireless/sysfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/wireless/sysfs.c b/net/wireless/sysfs.c
index 9bf6d5e3216..73bf39f1131 100644
--- a/net/wireless/sysfs.c
+++ b/net/wireless/sysfs.c
@@ -108,9 +108,7 @@ static int wiphy_resume(struct device *dev)
int ret = 0;
/* Age scan results with time spent in suspend */
- spin_lock_bh(&rdev->bss_lock);
cfg80211_bss_age(rdev, get_seconds() - rdev->suspend_at);
- spin_unlock_bh(&rdev->bss_lock);
if (rdev->ops->resume) {
rtnl_lock();