Skip to content

Commit

Permalink
regulatory: simplify regulatory_hint_11d
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg committed Jan 3, 2013
1 parent fea9bce commit 75e2dba
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 75e2dba

Please sign in to comment.