Commit 3430140a authored by Johannes Berg's avatar Johannes Berg

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent ceca7b71
...@@ -1345,7 +1345,7 @@ get_reg_request_treatment(struct wiphy *wiphy, ...@@ -1345,7 +1345,7 @@ get_reg_request_treatment(struct wiphy *wiphy,
return REG_REQ_OK; return REG_REQ_OK;
return REG_REQ_ALREADY_SET; return REG_REQ_ALREADY_SET;
} }
return 0; return REG_REQ_OK;
case NL80211_REGDOM_SET_BY_DRIVER: case NL80211_REGDOM_SET_BY_DRIVER:
if (lr->initiator == NL80211_REGDOM_SET_BY_CORE) { if (lr->initiator == NL80211_REGDOM_SET_BY_CORE) {
if (regdom_changes(pending_request->alpha2)) if (regdom_changes(pending_request->alpha2))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment