projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e34b51
)
i2c: slave-eeprom: skip useless initialization
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Mon, 25 May 2020 09:59:33 +0000
(11:59 +0200)
committer
Wolfram Sang
<wsa@kernel.org>
Thu, 28 May 2020 16:05:56 +0000
(18:05 +0200)
We have a kzalloced struct, no need to init to 0.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/i2c-slave-eeprom.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/i2c-slave-eeprom.c
b/drivers/i2c/i2c-slave-eeprom.c
index 787fdb7f332f0780948bc32fc09d1ee8673c8daa..6684852818acdcc53998db21d5380a6b1161dd14 100644
(file)
--- a/
drivers/i2c/i2c-slave-eeprom.c
+++ b/
drivers/i2c/i2c-slave-eeprom.c
@@
-152,7
+152,6
@@
static int i2c_slave_eeprom_probe(struct i2c_client *client, const struct i2c_de
if (!eeprom)
return -ENOMEM;
- eeprom->idx_write_cnt = 0;
eeprom->num_address_bytes = flag_addr16 ? 2 : 1;
eeprom->address_mask = size - 1;
eeprom->read_only = FIELD_GET(I2C_SLAVE_FLAG_RO, id->driver_data);