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:
parent
fea9bcedce
commit
75e2dba866
|
@ -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(®_mutex);
|
||||
|
||||
queue_regulatory_request(request);
|
||||
|
||||
return;
|
||||
|
||||
out:
|
||||
mutex_unlock(®_mutex);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue