Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df5586d7 authored by Boris Brezillon's avatar Boris Brezillon
Browse files

mtd: nand: sunxi: Remove unneeded ->cmdfunc(NAND_CMD_READ0, 0, page)



The core already sends the NAND_CMD_READ0 for us. Duplicating this call
in the driver is useless and introduces a perf penalty.

Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent 2de85e73
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1301,7 +1301,6 @@ static int sunxi_nfc_hw_ecc_read_subpage(struct mtd_info *mtd,

	sunxi_nfc_hw_ecc_enable(mtd);

	chip->cmdfunc(mtd, NAND_CMD_READ0, 0, page);
	for (i = data_offs / ecc->size;
	     i < DIV_ROUND_UP(data_offs + readlen, ecc->size); i++) {
		int data_off = i * ecc->size;