diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-06-04 14:35:07 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-06-04 14:35:07 +0200 |
commit | 3430140ad9da9ec1caaf800af6b0378351919f9c (patch) | |
tree | ff00e7afb37f9a99ae396b6fd4f02f3c8aa6f630 /net/wireless | |
parent | ceca7b7121795ef81bd598a240d53a925662d0c1 (diff) | |
download | op-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.c | 2 |
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)) |