summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2023-07-16 16:46:09 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2023-07-28 14:32:24 +0200
commitfd29ba6707f9b81e8c79a25f25d76a1d39fd60c9 (patch)
tree06fe002f820f9ba1ff0367bda37e5db6ca7ace19 /drivers/mtd
parent3b645b384bb3d1f30c3ac4b8fd5fcdf9d5493f93 (diff)
mtd: rawnand: qcom: Fix wrong indentation
The main "for" loop in qcom_read_status_exec() does guard the following to if's which are badly indented. Fix the indentation. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Manivannan Sadhasivam <mani@kernel.org> Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org> Link: https://lore.kernel.org/linux-mtd/20230716144612.32132-6-miquel.raynal@bootlin.com
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/raw/qcom_nandc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c
index 554cca3801da..3adc40ef5cf6 100644
--- a/drivers/mtd/nand/raw/qcom_nandc.c
+++ b/drivers/mtd/nand/raw/qcom_nandc.c
@@ -2722,12 +2722,12 @@ static int qcom_read_status_exec(struct nand_chip *chip,
for (i = 0; i < num_cw; i++) {
flash_status = le32_to_cpu(nandc->reg_read_buf[i]);
- if (flash_status & FS_MPU_ERR)
- host->status &= ~NAND_STATUS_WP;
+ if (flash_status & FS_MPU_ERR)
+ host->status &= ~NAND_STATUS_WP;
- if (flash_status & FS_OP_ERR ||
- (i == (num_cw - 1) && (flash_status & FS_DEVICE_STS_ERR)))
- host->status |= NAND_STATUS_FAIL;
+ if (flash_status & FS_OP_ERR ||
+ (i == (num_cw - 1) && (flash_status & FS_DEVICE_STS_ERR)))
+ host->status |= NAND_STATUS_FAIL;
}
flash_status = host->status;