projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adfe928
)
thermal: stm32: simplify the return expression of stm_thermal_prepare()
author
Qinglang Miao
<miaoqinglang@huawei.com>
Mon, 21 Sep 2020 13:11:07 +0000
(21:11 +0800)
committer
Daniel Lezcano
<daniel.lezcano@linaro.org>
Mon, 12 Oct 2020 10:08:35 +0000
(12:08 +0200)
Simplify the return expression.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link:
https://lore.kernel.org/r/20200921131107.93273-1-miaoqinglang@huawei.com
drivers/thermal/st/stm_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/st/stm_thermal.c
b/drivers/thermal/st/stm_thermal.c
index 331e2b768df54a359029b84c50739b4965ca10aa..5fd3fb8912a6a796f0a5d8953b3e2def32ded5d3 100644
(file)
--- a/
drivers/thermal/st/stm_thermal.c
+++ b/
drivers/thermal/st/stm_thermal.c
@@
-446,14
+446,9
@@
thermal_unprepare:
#ifdef CONFIG_PM_SLEEP
static int stm_thermal_suspend(struct device *dev)
{
- int ret;
struct stm_thermal_sensor *sensor = dev_get_drvdata(dev);
- ret = stm_thermal_sensor_off(sensor);
- if (ret)
- return ret;
-
- return 0;
+ return stm_thermal_sensor_off(sensor);
}
static int stm_thermal_resume(struct device *dev)