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

Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
---
 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to