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>
This commit is contained in:
Johannes Berg 2012-12-03 17:21:26 +01:00
parent fea9bcedce
commit 75e2dba866
1 changed files with 0 additions and 5 deletions

View 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);
}