projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7981159
)
rtc: ds1307: remove superfluous initialization
author
Wolfram Sang
<w.sang@pengutronix.de>
Tue, 29 May 2012 22:07:38 +0000
(15:07 -0700)
committer
Linus 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/rtc/rtc-ds1307.c
b/drivers/rtc/rtc-ds1307.c
index c293d0cdb10483502784653f8617d0f0ecb55562..5dc1c7941199656e0269acce3ca0672da6b22bcd 100644
(file)
--- 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)) {