diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-05-16 00:23:46 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-06-01 10:09:32 +0200 |
commit | df5586d7bf6cce421ed48e9b2a88a8bdaa4fd9d0 (patch) | |
tree | 8bf6276b2bfdbe0c5d81a1a281766220cd64c537 | |
parent | 2de85e73360104d3582363dcebdcdd7dc20431be (diff) | |
download | op-kernel-dev-df5586d7bf6cce421ed48e9b2a88a8bdaa4fd9d0.zip op-kernel-dev-df5586d7bf6cce421ed48e9b2a88a8bdaa4fd9d0.tar.gz |
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: Boris Brezillon <boris.brezillon@free-electrons.com>
-rw-r--r-- | drivers/mtd/nand/sunxi_nand.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c index 9a46d1d..d0b6f8f 100644 --- a/drivers/mtd/nand/sunxi_nand.c +++ b/drivers/mtd/nand/sunxi_nand.c @@ -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; |