]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rtc: ds1307: remove superfluous initialization
authorWolfram Sang <w.sang@pengutronix.de>
Thu, 3 May 2012 05:44:34 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:52 +0000 (15:46 +1000)
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>
drivers/rtc/rtc-ds1307.c

index c293d0cdb10483502784653f8617d0f0ecb55562..5dc1c7941199656e0269acce3ca0672da6b22bcd 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)) {