All of lore.kernel.org
 help / color / mirror / Atom feed
* [rtc-linux] [PATCH 2/2] rtc: ds1302: Remove duplicate initialization code
@ 2017-02-09  0:39 Nobuhiro Iwamatsu
  0 siblings, 0 replies; only message in thread
From: Nobuhiro Iwamatsu @ 2017-02-09  0:39 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni; +Cc: rtc-linux, Nobuhiro Iwamatsu

The dp variable is initialized twice with ds1302_rtc_set_time function.
This patch removes duplicate initialization code.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---
 drivers/rtc/rtc-ds1302.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/rtc/rtc-ds1302.c b/drivers/rtc/rtc-ds1302.c
index 0ec4be62322b..bc0e80921eb1 100644
--- a/drivers/rtc/rtc-ds1302.c
+++ b/drivers/rtc/rtc-ds1302.c
@@ -47,7 +47,6 @@ static int ds1302_rtc_set_time(struct device *dev, struct rtc_time *time)
 	int		status;
 
 	/* Enable writing */
-	bp = buf;
 	*bp++ = RTC_ADDR_CTRL << 1 | RTC_CMD_WRITE;
 	*bp++ = RTC_CMD_WRITE_ENABLE;
 
-- 
2.11.0

-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-02-09  0:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-09  0:39 [rtc-linux] [PATCH 2/2] rtc: ds1302: Remove duplicate initialization code Nobuhiro Iwamatsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.