mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
fea9bcedce
commit
75e2dba866
1 changed files with 0 additions and 5 deletions
|
|
@ -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 a new issue