Unverified Commit 1a21bdfe authored by Tudor Ambarus's avatar Tudor Ambarus
Browse files

mtd: spi-nor: hisi-sfc: Drop nor->erase NULL assignment



The pointer to 'struct spi_nor' is kzalloc'ed above in the code.

Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
parent 172b3321
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -364,7 +364,6 @@ static int hisi_spi_nor_register(struct device_node *np,
	nor->write_reg = hisi_spi_nor_write_reg;
	nor->read = hisi_spi_nor_read;
	nor->write = hisi_spi_nor_write;
	nor->erase = NULL;
	ret = spi_nor_scan(nor, NULL, &hwcaps);
	if (ret)
		return ret;