rtc: ds1307: remove superfluous initialization
authorWolfram Sang <w.sang@pengutronix.de>
Tue, 29 May 2012 22:07:38 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:33 +0000 (16:22 -0700)
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>
drivers/rtc/rtc-ds1307.c

index c293d0c..5dc1c79 100644 (file)
@@ -637,7 +637,6 @@ static int __devinit ds1307_probe(struct i2c_client *client,
 
        ds1307->client  = client;
        ds1307->type    = id->driver_data;
-       ds1307->offset  = 0;
 
        buf = ds1307->regs;
        if (i2c_check_functionality(adapter, I2C_FUNC_SMBUS_I2C_BLOCK)) {