浏览代码

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

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>
Devang Panchal 7 年之前
父节点
当前提交
c84f259c87
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/misc/eeprom/at25.c

+ 1 - 1
drivers/misc/eeprom/at25.c

@@ -102,7 +102,7 @@ static int at25_ee_read(void *priv, unsigned int offset,
 	}
 	}
 
 
 	spi_message_init(&m);
 	spi_message_init(&m);
-	memset(t, 0, sizeof t);
+	memset(t, 0, sizeof(t));
 
 
 	t[0].tx_buf = command;
 	t[0].tx_buf = command;
 	t[0].len = at25->addrlen + 1;
 	t[0].len = at25->addrlen + 1;