* [PATCH -next] thermal: broadcom: simplify the return expression of bcm2711_thermal_probe()
@ 2020-12-10 13:54 Zheng Yongjun
2020-12-10 14:34 ` Nicolas Saenz Julienne
2020-12-10 17:23 ` Florian Fainelli
0 siblings, 2 replies; 3+ messages in thread
From: Zheng Yongjun @ 2020-12-10 13:54 UTC (permalink / raw)
To: nsaenzjulienne, linux-pm, bcm-kernel-feedback-list, linux-kernel,
linux-arm-kernel
Cc: Zheng Yongjun
Simplify the return expression.
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next] thermal: broadcom: simplify the return expression of bcm2711_thermal_probe()
2020-12-10 13:54 [PATCH -next] thermal: broadcom: simplify the return expression of bcm2711_thermal_probe() Zheng Yongjun
@ 2020-12-10 14:34 ` Nicolas Saenz Julienne
2020-12-10 17:23 ` Florian Fainelli
1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Saenz Julienne @ 2020-12-10 14:34 UTC (permalink / raw)
To: Zheng Yongjun, linux-pm, bcm-kernel-feedback-list, linux-kernel,
linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 242 bytes --]
On Thu, 2020-12-10 at 21:54 +0800, Zheng Yongjun wrote:
> Simplify the return expression.
>
> Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Regards,
Nicolas
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] thermal: broadcom: simplify the return expression of bcm2711_thermal_probe()
2020-12-10 13:54 [PATCH -next] thermal: broadcom: simplify the return expression of bcm2711_thermal_probe() Zheng Yongjun
2020-12-10 14:34 ` Nicolas Saenz Julienne
@ 2020-12-10 17:23 ` Florian Fainelli
1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2020-12-10 17:23 UTC (permalink / raw)
To: Zheng Yongjun, nsaenzjulienne, linux-pm,
bcm-kernel-feedback-list, linux-kernel, linux-arm-kernel
On 12/10/2020 5:54 AM, Zheng Yongjun wrote:
> Simplify the return expression.
>
> Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-12-10 17:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-10 13:54 [PATCH -next] thermal: broadcom: simplify the return expression of bcm2711_thermal_probe() Zheng Yongjun
2020-12-10 14:34 ` Nicolas Saenz Julienne
2020-12-10 17:23 ` Florian Fainelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).