mtd: rawnand: qcom: Simplify the call to nand_prog_page_end_op()

Now that the dma desc cleanup is moved inside submit_descs(), let's
simplify the call to nand_prog_page_end_op() inside qcom_nandc_write_page()
and qcom_nandc_write_page_raw() to match other functions.

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-9-manivannan.sadhasivam@linaro.org
This commit is contained in:
Manivannan Sadhasivam 2023-08-05 23:11:44 +05:30 committed by Miquel Raynal
parent bb7a103d45
commit c56de1e5b9
1 changed files with 8 additions and 10 deletions

View File

@ -2016,13 +2016,12 @@ static int qcom_nandc_write_page(struct nand_chip *chip, const u8 *buf,
} }
ret = submit_descs(nandc); ret = submit_descs(nandc);
if (ret) if (ret) {
dev_err(nandc->dev, "failure to write page\n"); dev_err(nandc->dev, "failure to write page\n");
return ret;
}
if (!ret) return nand_prog_page_end_op(chip);
ret = nand_prog_page_end_op(chip);
return ret;
} }
/* implements ecc->write_page_raw() */ /* implements ecc->write_page_raw() */
@ -2090,13 +2089,12 @@ static int qcom_nandc_write_page_raw(struct nand_chip *chip,
} }
ret = submit_descs(nandc); ret = submit_descs(nandc);
if (ret) if (ret) {
dev_err(nandc->dev, "failure to write raw page\n"); dev_err(nandc->dev, "failure to write raw page\n");
return ret;
}
if (!ret) return nand_prog_page_end_op(chip);
ret = nand_prog_page_end_op(chip);
return ret;
} }
/* /*