diff mbox series

mtd: rawnand: qcom: Fix build issue

Message ID 20230821053513.13728-1-quic_mdalam@quicinc.com (mailing list archive)
State Not Applicable
Headers show
Series mtd: rawnand: qcom: Fix build issue | expand

Commit Message

Md Sadre Alam Aug. 21, 2023, 5:35 a.m. UTC
Fix the build issue, after removing unused variable nandc
in qcom_parse_instructions() function.

Fixes: 0bb2bd18efe8 ("mtd: rawnand: qcom: Add read/read_start ops in exec_op path")
Signed-off-by: Sricharan Ramabadhran <quic_srichara@quicinc.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---
 drivers/mtd/nand/raw/qcom_nandc.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Miquel Raynal Aug. 21, 2023, 7:29 a.m. UTC | #1
Hello,

quic_mdalam@quicinc.com wrote on Mon, 21 Aug 2023 11:05:13 +0530:

> Fix the build issue, after removing unused variable nandc
> in qcom_parse_instructions() function.
> 
> Fixes: 0bb2bd18efe8 ("mtd: rawnand: qcom: Add read/read_start ops in exec_op path")

I will squash this fix.

> Signed-off-by: Sricharan Ramabadhran <quic_srichara@quicinc.com>
> Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
> ---
>  drivers/mtd/nand/raw/qcom_nandc.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c
> index 370a779610e2..6aff45f32260 100644
> --- a/drivers/mtd/nand/raw/qcom_nandc.c
> +++ b/drivers/mtd/nand/raw/qcom_nandc.c
> @@ -2593,7 +2593,6 @@ static int qcom_parse_instructions(struct nand_chip *chip,
>  				    const struct nand_subop *subop,
>  				    struct qcom_op *q_op)
>  {
> -	struct qcom_nand_controller *nandc = get_qcom_nand_controller(chip);
>  	const struct nand_op_instr *instr = NULL;
>  	unsigned int op_id;
>  	int i, ret;


Thanks,
Miquèl
diff mbox series

Patch

diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c
index 370a779610e2..6aff45f32260 100644
--- a/drivers/mtd/nand/raw/qcom_nandc.c
+++ b/drivers/mtd/nand/raw/qcom_nandc.c
@@ -2593,7 +2593,6 @@  static int qcom_parse_instructions(struct nand_chip *chip,
 				    const struct nand_subop *subop,
 				    struct qcom_op *q_op)
 {
-	struct qcom_nand_controller *nandc = get_qcom_nand_controller(chip);
 	const struct nand_op_instr *instr = NULL;
 	unsigned int op_id;
 	int i, ret;