[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211213101519.25f4e2e1@xps13>
Date: Mon, 13 Dec 2021 10:16:09 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: cgel.zte@...il.com
Cc: han.xu@....com, richard@....at, vigneshr@...com,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org,
Minghao Chi <chi.minghao@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: Re: [PATCH nand-next] mtd/nand:remove unneeded variable
Hello,
cgel.zte@...il.com wrote on Fri, 10 Dec 2021 02:18:22 +0000:
> From: Minghao Chi <chi.minghao@....com.cn>
>
> Return status directly from function called.
The subject prefix should be "mtd: rawnand: gpmi: "
>
> Reported-by: Zeal Robot <zealci@....com.cm>
> Signed-off-by: Minghao Chi <chi.minghao@....com.cn>
> ---
> drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
> index 10cc71829dcb..ab9d1099bafa 100644
> --- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
> +++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
> @@ -1425,7 +1425,6 @@ static int gpmi_ecc_write_page(struct nand_chip *chip, const uint8_t *buf,
> struct mtd_info *mtd = nand_to_mtd(chip);
> struct gpmi_nand_data *this = nand_get_controller_data(chip);
> struct bch_geometry *nfc_geo = &this->bch_geometry;
> - int ret;
>
> dev_dbg(this->dev, "ecc write page.\n");
>
> @@ -1445,9 +1444,7 @@ static int gpmi_ecc_write_page(struct nand_chip *chip, const uint8_t *buf,
> this->auxiliary_virt);
> }
>
> - ret = nand_prog_page_op(chip, page, 0, buf, nfc_geo->page_size);
> -
> - return ret;
> + return nand_prog_page_op(chip, page, 0, buf, nfc_geo->page_size);
> }
>
> /*
Thanks,
Miquèl
Powered by blists - more mailing lists