Skip to content

Commit

Permalink
rtc: ds1307: remove superfluous initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wolfram Sang authored and Linus Torvalds committed May 29, 2012
1 parent 7981159 commit f8ae970
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/rtc/rtc-ds1307.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit f8ae970

Please sign in to comment.