linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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

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).