mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
regulatory: use proper enum return value
get_reg_request_treatment() returns 0 in one case but is defined to return an enum, use the proper value REG_REQ_OK. Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
ceca7b7121
commit
3430140ad9
1 changed files with 1 additions and 1 deletions
|
|
@ -1345,7 +1345,7 @@ get_reg_request_treatment(struct wiphy *wiphy,
|
|||
return REG_REQ_OK;
|
||||
return REG_REQ_ALREADY_SET;
|
||||
}
|
||||
return 0;
|
||||
return REG_REQ_OK;
|
||||
case NL80211_REGDOM_SET_BY_DRIVER:
|
||||
if (lr->initiator == NL80211_REGDOM_SET_BY_CORE) {
|
||||
if (regdom_changes(pending_request->alpha2))
|
||||
|
|
|
|||
Loading…
Reference in a new issue