提交 e7b65a49 编写于 作者: T Tudor.Ambarus@microchip.com 提交者: Boris Brezillon

mtd: spi-nor: remove unneeded smpt zeroization

The entire smpt array is initialized with data read from sfdp,
there is no need to init it with zeroes before.
Signed-off-by: NTudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: NBoris Brezillon <boris.brezillon@bootlin.com>
上级 25956467
......@@ -3091,7 +3091,7 @@ static int spi_nor_parse_smpt(struct spi_nor *nor,
/* Read the Sector Map Parameter Table. */
len = smpt_header->length * sizeof(*smpt);
smpt = kzalloc(len, GFP_KERNEL);
smpt = kmalloc(len, GFP_KERNEL);
if (!smpt)
return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册