eeprom: at25: sizeof t should be sizeof(t)
authorDevang Panchal <devang.panchal@softnautics.com>
Wed, 21 Mar 2018 05:34:35 +0000 (11:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Mar 2018 15:05:00 +0000 (16:05 +0100)
Resolved checkpatch warning "sizeof t should be sizeof(t)"
issue found by checkpatch.

Signed-off-by: Devang Panchal <devang.panchal@softnautics.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/at25.c

index 9282ffd607ff2799e08f4c96b9e493ec64c454a1..6a7d4a2ad51479624fae229023d698c58549f405 100644 (file)
@@ -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;