mtd: rawnand: qcom: fix return value for raw page read
authorAbhishek Sahu <absahu@codeaurora.org>
Wed, 20 Jun 2018 07:27:38 +0000 (12:57 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jul 2018 07:24:09 +0000 (09:24 +0200)
Fix value returned by ->read_page_raw() to be the
actual operation status, instead of always 0.

Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/qcom_nandc.c

index 28361b56ac4564f8b57fbd1a8a2f8ab9f5783172..887b1f6aff1423c4467e72ce2b7ea4a2208aea2f 100644 (file)
@@ -1898,7 +1898,7 @@ static int qcom_nandc_read_page_raw(struct mtd_info *mtd,
 
        free_descs(nandc);
 
-       return 0;
+       return ret;
 }
 
 /* implements ecc->read_oob() */