diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-12-03 11:21:26 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-01-03 07:01:21 -0500 |
commit | 75e2dba866706ab9b133983b7fd9a6297b24c22d (patch) | |
tree | c70a293c7e51230616afa3bef62a106a39e0d514 /net | |
parent | fea9bcedce2d0c751d4f31155f4634689d46166e (diff) |
regulatory: simplify regulatory_hint_11d
There's no need to unlock before calling
queue_regulatory_request(), so simplify
the function.
Acked-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/wireless/reg.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 1496a10da638..cd99d285e8d8 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1825,12 +1825,7 @@ void regulatory_hint_11d(struct wiphy *wiphy, | |||
1825 | request->initiator = NL80211_REGDOM_SET_BY_COUNTRY_IE; | 1825 | request->initiator = NL80211_REGDOM_SET_BY_COUNTRY_IE; |
1826 | request->country_ie_env = env; | 1826 | request->country_ie_env = env; |
1827 | 1827 | ||
1828 | mutex_unlock(®_mutex); | ||
1829 | |||
1830 | queue_regulatory_request(request); | 1828 | queue_regulatory_request(request); |
1831 | |||
1832 | return; | ||
1833 | |||
1834 | out: | 1829 | out: |
1835 | mutex_unlock(®_mutex); | 1830 | mutex_unlock(®_mutex); |
1836 | } | 1831 | } |