From: Wolfram Sang Date: Tue, 29 May 2012 22:07:38 +0000 (-0700) Subject: rtc: ds1307: remove superfluous initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f8ae97019ff79559416dc2ae9c14af92c2054cba;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git rtc: ds1307: remove superfluous initialization ds1307 was kzalloced, so no need to zero members of the struct. Signed-off-by: Wolfram Sang Acked-by: Joakim Tjernlund Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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, ds1307->client = client; ds1307->type = id->driver_data; - ds1307->offset = 0; buf = ds1307->regs; if (i2c_check_functionality(adapter, I2C_FUNC_SMBUS_I2C_BLOCK)) {