From: Abhishek Sahu Date: Wed, 20 Jun 2018 07:27:38 +0000 (+0530) Subject: mtd: rawnand: qcom: fix return value for raw page read X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=783b5bf9bd91a59717df38ec3ba7d65b1f441f32;p=openwrt%2Fstaging%2Fblogic.git mtd: rawnand: qcom: fix return value for raw page read Fix value returned by ->read_page_raw() to be the actual operation status, instead of always 0. Signed-off-by: Abhishek Sahu Signed-off-by: Miquel Raynal --- diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c index 28361b56ac45..887b1f6aff14 100644 --- a/drivers/mtd/nand/raw/qcom_nandc.c +++ b/drivers/mtd/nand/raw/qcom_nandc.c @@ -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() */