regulatory: simplify regulatory_hint_11d
authorJohannes Berg <johannes.berg@intel.com>
Mon, 3 Dec 2012 16:21:26 +0000 (17:21 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:21 +0000 (13:01 +0100)
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>
net/wireless/reg.c

index 1496a10..cd99d28 100644 (file)
@@ -1825,12 +1825,7 @@ void regulatory_hint_11d(struct wiphy *wiphy,
        request->initiator = NL80211_REGDOM_SET_BY_COUNTRY_IE;
        request->country_ie_env = env;
 
-       mutex_unlock(&reg_mutex);
-
        queue_regulatory_request(request);
-
-       return;
-
 out:
        mutex_unlock(&reg_mutex);
 }