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 <absahu@codeaurora.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
Abhishek Sahu 2018-06-20 12:57:38 +05:30 committed by Miquel Raynal
parent 28eed9f6ca
commit 783b5bf9bd
1 changed files with 1 additions and 1 deletions

View 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() */