thermal: broadcom: simplify the return expression of bcm2711_thermal_probe()
Simplify the return expression. Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com> Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20201210135432.1249-1-zhengyongjun3@huawei.com
This commit is contained in:
parent
8639ff4194
commit
ea21f589de
@ -102,11 +102,7 @@ static int bcm2711_thermal_probe(struct platform_device *pdev)
|
|||||||
priv->thermal = thermal;
|
priv->thermal = thermal;
|
||||||
|
|
||||||
thermal->tzp->no_hwmon = false;
|
thermal->tzp->no_hwmon = false;
|
||||||
ret = thermal_add_hwmon_sysfs(thermal);
|
return thermal_add_hwmon_sysfs(thermal);
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct platform_driver bcm2711_thermal_driver = {
|
static struct platform_driver bcm2711_thermal_driver = {
|
||||||
|
Loading…
Reference in New Issue
Block a user