summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-06-04 14:35:07 +0200
committerJohannes Berg <johannes.berg@intel.com>2013-06-04 14:35:07 +0200
commit3430140ad9da9ec1caaf800af6b0378351919f9c (patch)
treeff00e7afb37f9a99ae396b6fd4f02f3c8aa6f630 /net/wireless
parentceca7b7121795ef81bd598a240d53a925662d0c1 (diff)
downloadop-kernel-dev-3430140ad9da9ec1caaf800af6b0378351919f9c.zip
op-kernel-dev-3430140ad9da9ec1caaf800af6b0378351919f9c.tar.gz
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 <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index e1d6749..5a24c98 100644
--- 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))
OpenPOWER on IntegriCloud