Commit e7b65a49 authored by Tudor.Ambarus@microchip.com's avatar Tudor.Ambarus@microchip.com Committed by Boris Brezillon
Browse files

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: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
parent 25956467
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;