mtd: nand: sunxi: Remove unneeded ->cmdfunc(NAND_CMD_READ0, 0, page)
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 15 May 2017 22:23:46 +0000 (00:23 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 1 Jun 2017 08:09:32 +0000 (10:09 +0200)
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: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/sunxi_nand.c

index 9a46d1db9211f642979f8357fb5088aa7fd3b5ca..d0b6f8f9f297ab89f355a727c333de1c5a2f7fc8 100644 (file)
@@ -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;