projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceca7b7
)
regulatory: use proper enum return value
author
Johannes Berg
<johannes.berg@intel.com>
Tue, 4 Jun 2013 12:35:07 +0000
(14:35 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 4 Jun 2013 12:35:07 +0000
(14:35 +0200)
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 <johannes.berg@intel.com>
net/wireless/reg.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/reg.c
b/net/wireless/reg.c
index e1d6749234c6b48a2528a550089ee0acf113781b..5a24c986f34be27e61613f0deb421a35efc61533 100644
(file)
--- a/
net/wireless/reg.c
+++ b/
net/wireless/reg.c
@@
-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))