summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2020-05-25 11:59:33 +0200
committerWolfram Sang <wsa@kernel.org>2020-05-28 18:05:56 +0200
commitbee0d92c899b8600102eedf5e6e5e88a43c0ffdf (patch)
treec38674e7891d8e3cf21aa148e186ca2ee4656d26 /drivers/i2c
parenti2c: acpi: Drop double check for ACPI companion device (diff)
downloadlinux-bee0d92c899b8600102eedf5e6e5e88a43c0ffdf.tar.xz
linux-bee0d92c899b8600102eedf5e6e5e88a43c0ffdf.zip
i2c: slave-eeprom: skip useless initialization
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/i2c-slave-eeprom.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-slave-eeprom.c b/drivers/i2c/i2c-slave-eeprom.c
index 787fdb7f332f..6684852818ac 100644
--- 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);