aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-ds1307.c
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2012-05-29 18:07:38 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-29 19:22:33 -0400
commitf8ae97019ff79559416dc2ae9c14af92c2054cba (patch)
treee8224693d0d1e7101e69dac7641351404c2fb7e6 /drivers/rtc/rtc-ds1307.c
parent798115958967c8223f3d17e829a891564e8ea4cb (diff)
rtc: ds1307: remove superfluous initialization
ds1307 was kzalloced, so no need to zero members of the struct. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-ds1307.c')
-rw-r--r--drivers/rtc/rtc-ds1307.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
index c293d0cdb104..5dc1c7941199 100644
--- a/drivers/rtc/rtc-ds1307.c
+++ b/drivers/rtc/rtc-ds1307.c
@@ -637,7 +637,6 @@ static int __devinit ds1307_probe(struct i2c_client *client,
637 637
638 ds1307->client = client; 638 ds1307->client = client;
639 ds1307->type = id->driver_data; 639 ds1307->type = id->driver_data;
640 ds1307->offset = 0;
641 640
642 buf = ds1307->regs; 641 buf = ds1307->regs;
643 if (i2c_check_functionality(adapter, I2C_FUNC_SMBUS_I2C_BLOCK)) { 642 if (i2c_check_functionality(adapter, I2C_FUNC_SMBUS_I2C_BLOCK)) {