Skip to content

Commit dcd1e61

Browse files
Mani-Sadhasivammiquelraynal
authored andcommitted
mtd: rawnand: qcom: Do not override the error no of submit_descs()
Just use the error no returned by submit_descs() instead of overriding it with -EIO. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20230805174146.57006-10-manivannan.sadhasivam@linaro.org
1 parent c56de1e commit dcd1e61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mtd/nand/raw/qcom_nandc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,7 +2140,7 @@ static int qcom_nandc_write_oob(struct nand_chip *chip, int page)
21402140
ret = submit_descs(nandc);
21412141
if (ret) {
21422142
dev_err(nandc->dev, "failure to write oob\n");
2143-
return -EIO;
2143+
return ret;
21442144
}
21452145

21462146
return nand_prog_page_end_op(chip);
@@ -2216,7 +2216,7 @@ static int qcom_nandc_block_markbad(struct nand_chip *chip, loff_t ofs)
22162216
ret = submit_descs(nandc);
22172217
if (ret) {
22182218
dev_err(nandc->dev, "failure to update BBM\n");
2219-
return -EIO;
2219+
return ret;
22202220
}
22212221

22222222
return nand_prog_page_end_op(chip);

0 commit comments

Comments
 (0)