Skip to content

Commit 783b5bf

Browse files
Abhishek Sahumiquelraynal
authored andcommitted
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>
1 parent 28eed9f commit 783b5bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/nand/raw/qcom_nandc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,7 @@ static int qcom_nandc_read_page_raw(struct mtd_info *mtd,
18981898

18991899
free_descs(nandc);
19001900

1901-
return 0;
1901+
return ret;
19021902
}
19031903

19041904
/* implements ecc->read_oob() */

0 commit comments

Comments
 (0)