summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2018-05-10 14:06:50 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2018-05-10 14:06:50 +0900
commitcf2cceefd6c8695283178dd09451c1f22b8f95f7 (patch)
tree1c4130264d5a38e05c7fe746638432c649003573
parent92b030f5613c29d84b5574315dfc509b2a4a3629 (diff)
downloadpass-cf2cceefd6c8695283178dd09451c1f22b8f95f7.tar.gz
pass-cf2cceefd6c8695283178dd09451c1f22b8f95f7.tar.bz2
pass-cf2cceefd6c8695283178dd09451c1f22b8f95f7.zip
pass: thermal: Fix issue during stop PASS daemonsubmit/tizen/20180510.070432accepted/tizen/unified/20180510.134400
thermal->state indicates the "thermal_support" property in the configuration. If user doesn't want to use thermal monitor with "thermal_support=no", thermal->state is 0 (PASS_OFF). It is not error when thermal->state is zero. Just return zero value instead of error. Change-Id: I04f76774afb3b811d56dc0ebfb3f0888541e649f Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r--src/pass/pass-thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pass/pass-thermal.c b/src/pass/pass-thermal.c
index 4de164b..290950b 100644
--- a/src/pass/pass-thermal.c
+++ b/src/pass/pass-thermal.c
@@ -165,7 +165,7 @@ int pass_thermal_exit(struct pass_resource *res)
if (!res)
return -EINVAL;
if (res->thermal.state != PASS_ON)
- return -EINVAL;
+ return 0;
ret = pass_resmon_unregister_uevent(res, RESMON_SRC_THERMAL);
if (ret < 0) {