pass: thermal: Fix issue during stop PASS daemon 39/178439/1 accepted/tizen/unified/20180510.134400 submit/tizen/20180510.070432
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 10 May 2018 05:06:50 +0000 (14:06 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 10 May 2018 05:06:50 +0000 (14:06 +0900)
commitcf2cceefd6c8695283178dd09451c1f22b8f95f7
tree1c4130264d5a38e05c7fe746638432c649003573
parent92b030f5613c29d84b5574315dfc509b2a4a3629
pass: thermal: Fix issue during stop PASS daemon

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>
src/pass/pass-thermal.c