mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/6] drivers: rtc: pcf8536: Remove redundant variable
@ 2022-06-29  6:30 Alexander Shiyan
  2022-06-29  6:30 ` [PATCH 2/6] drivers: rtc: abracon: " Alexander Shiyan
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Alexander Shiyan @ 2022-06-29  6:30 UTC (permalink / raw)
  To: barebox; +Cc: Alexander Shiyan

Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
 drivers/rtc/rtc-pcf85363.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/rtc/rtc-pcf85363.c b/drivers/rtc/rtc-pcf85363.c
index 7b785d6a77..b9f0fc6012 100644
--- a/drivers/rtc/rtc-pcf85363.c
+++ b/drivers/rtc/rtc-pcf85363.c
@@ -131,7 +131,6 @@ static int pcf85363_probe(struct device_d *dev)
 	struct i2c_client *client = to_i2c_client(dev);
 	struct pcf85363 *pcf85363;
 	struct regmap *regmap;
-	int ret;
 
 	regmap = regmap_init_i2c(client,
 				&pcf85363_regmap_i2c_config);
@@ -147,9 +146,7 @@ static int pcf85363_probe(struct device_d *dev)
 	pcf85363->rtc.ops = &rtc_ops;
 	pcf85363->rtc.dev = dev;
 
-	ret = rtc_register(&pcf85363->rtc);
-
-	return ret;
+	return rtc_register(&pcf85363->rtc);
 }
 
 static struct platform_device_id dev_ids[] = {
-- 
2.32.0




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-06-29  7:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29  6:30 [PATCH 1/6] drivers: rtc: pcf8536: Remove redundant variable Alexander Shiyan
2022-06-29  6:30 ` [PATCH 2/6] drivers: rtc: abracon: " Alexander Shiyan
2022-06-29  6:30 ` [PATCH 3/6] drivers: regulator: fixed: Fix error path in probe Alexander Shiyan
2022-06-29  6:30 ` [PATCH 4/6] drivers: pwm: imx: Remove redundant assignment Alexander Shiyan
2022-06-29  6:30 ` [PATCH 5/6] drivers: gpio: pcf857x: " Alexander Shiyan
2022-06-29  6:30 ` [PATCH 6/6] drivers: led: pca955x: " Alexander Shiyan
2022-06-29  7:33 ` [PATCH 1/6] drivers: rtc: pcf8536: Remove redundant variable Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox