diff options
author | Zheng Yongjun <zhengyongjun3@huawei.com> | 2020-12-10 14:54:32 +0100 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-12-10 18:29:43 +0100 |
commit | ea21f589de9a7d787f50da480d01457d8dcdd64a (patch) | |
tree | cf40377f14456191038032838a4230a554e20a01 /drivers/thermal/broadcom/bcm2711_thermal.c | |
parent | thermal: intel: pch: use macro for temperature calculation (diff) | |
download | linux-ea21f589de9a7d787f50da480d01457d8dcdd64a.tar.xz linux-ea21f589de9a7d787f50da480d01457d8dcdd64a.zip |
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
Diffstat (limited to 'drivers/thermal/broadcom/bcm2711_thermal.c')
-rw-r--r-- | drivers/thermal/broadcom/bcm2711_thermal.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/thermal/broadcom/bcm2711_thermal.c b/drivers/thermal/broadcom/bcm2711_thermal.c index 67c2a737bc9d..1ec57d9ecf53 100644 --- a/drivers/thermal/broadcom/bcm2711_thermal.c +++ b/drivers/thermal/broadcom/bcm2711_thermal.c @@ -102,11 +102,7 @@ static int bcm2711_thermal_probe(struct platform_device *pdev) priv->thermal = thermal; thermal->tzp->no_hwmon = false; - ret = thermal_add_hwmon_sysfs(thermal); - if (ret) - return ret; - - return 0; + return thermal_add_hwmon_sysfs(thermal); } static struct platform_driver bcm2711_thermal_driver = { |