Skip to contentSkip to conversation

eeprom: at25: sizeof t should be sizeof(t)

PATCH New Devang Panchal 1 participant 1 message Mar 21, 2018 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eeprom: at25: sizeof t should be sizeof(t)

Resolved checkpatch warning "sizeof t should be sizeof(t)" issue found by checkpatch.

---
 drivers/misc/eeprom/at25.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/eeprom/at25.c +1 -1
index 9282ffd..6a7d4a2 100644
@@ -102,7 +102,7 @@ static int at25_ee_read(void *priv, unsigned int offset,
 	}
 
 	spi_message_init(&m);
-	memset(t, 0, sizeof t);
+	memset(t, 0, sizeof(t));
 
 	t[0].tx_buf = command;
 	t[0].len = at25->addrlen + 1;
Signature · 1 line
1.9.1