提交 f8ae9701 编写于 作者: W Wolfram Sang 提交者: Linus Torvalds

rtc: ds1307: remove superfluous initialization

ds1307 was kzalloced, so no need to zero members of the struct.
Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
Acked-by: NJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 79811595
......@@ -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)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册