From: Johannes Berg Date: Tue, 4 Jun 2013 12:35:07 +0000 (+0200) Subject: regulatory: use proper enum return value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3430140ad9da9ec1caaf800af6b0378351919f9c;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 --- diff --git a/net/wireless/reg.c b/net/wireless/reg.c index e1d6749234c6..5a24c986f34b 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))