2020-12-10 14:49:53

by Zheng Yongjun

[permalink] [raw]
Subject: [PATCH -next] thermal: broadcom: simplify the return expression of bcm2711_thermal_probe()

Simplify the return expression.

Signed-off-by: Zheng Yongjun <[email protected]>
---
drivers/thermal/broadcom/bcm2711_thermal.c | 6 +-----
1 file changed, 1 insertion(+), 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 = {
--
2.22.0


2020-12-10 15:42:20

by Nicolas Saenz Julienne

[permalink] [raw]
Subject: Re: [PATCH -next] thermal: broadcom: simplify the return expression of bcm2711_thermal_probe()

On Thu, 2020-12-10 at 21:54 +0800, Zheng Yongjun wrote:
> Simplify the return expression.
>
> Signed-off-by: Zheng Yongjun <[email protected]>

Reviewed-by: Nicolas Saenz Julienne <[email protected]>

Regards,
Nicolas


Attachments:
signature.asc (499.00 B)
This is a digitally signed message part

2020-12-11 21:01:19

by Florian Fainelli

[permalink] [raw]
Subject: Re: [PATCH -next] thermal: broadcom: simplify the return expression of bcm2711_thermal_probe()



On 12/10/2020 5:54 AM, Zheng Yongjun wrote:
> Simplify the return expression.
>
> Signed-off-by: Zheng Yongjun <[email protected]>

Reviewed-by: Florian Fainelli <[email protected]>
--
Florian