1
0
Fork 0

thermal: stm32: simplify the return expression of stm_thermal_prepare()

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
zero-sugar-mainline-defconfig
Qinglang Miao 2020-09-21 21:11:07 +08:00 committed by Daniel Lezcano
parent adfe9285be
commit be52a1963f
1 changed files with 1 additions and 6 deletions

View File

@ -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)