linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] i2c: slave-eeprom: skip useless initialization
@ 2020-05-25  9:59 Wolfram Sang
  2020-05-25  9:59 ` [PATCH 2/2] i2c: slave-eeprom: update documentation to recent changes Wolfram Sang
  2020-05-28 16:06 ` [PATCH 1/2] i2c: slave-eeprom: skip useless initialization Wolfram Sang
  0 siblings, 2 replies; 4+ messages in thread
From: Wolfram Sang @ 2020-05-25  9:59 UTC (permalink / raw)
  To: linux-i2c; +Cc: Björn Ardö, Wolfram Sang

We have a kzalloced struct, no need to init to 0.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/i2c/i2c-slave-eeprom.c | 1 -
 1 file changed, 1 deletion(-)

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);
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-28 16:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-25  9:59 [PATCH 1/2] i2c: slave-eeprom: skip useless initialization Wolfram Sang
2020-05-25  9:59 ` [PATCH 2/2] i2c: slave-eeprom: update documentation to recent changes Wolfram Sang
2020-05-28 16:06   ` Wolfram Sang
2020-05-28 16:06 ` [PATCH 1/2] i2c: slave-eeprom: skip useless initialization Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).