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
This commit is contained in:
parent
adfe9285be
commit
be52a1963f
|
@ -446,14 +446,9 @@ thermal_unprepare:
|
||||||
#ifdef CONFIG_PM_SLEEP
|
#ifdef CONFIG_PM_SLEEP
|
||||||
static int stm_thermal_suspend(struct device *dev)
|
static int stm_thermal_suspend(struct device *dev)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
struct stm_thermal_sensor *sensor = dev_get_drvdata(dev);
|
struct stm_thermal_sensor *sensor = dev_get_drvdata(dev);
|
||||||
|
|
||||||
ret = stm_thermal_sensor_off(sensor);
|
return stm_thermal_sensor_off(sensor);
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int stm_thermal_resume(struct device *dev)
|
static int stm_thermal_resume(struct device *dev)
|
||||||
|
|
Loading…
Reference in New Issue