diff options
author | Minghao Chi <chi.minghao@zte.com.cn> | 2021-12-13 11:26:27 +0000 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-12-17 11:26:07 +0100 |
commit | 35a441eea7032d08844b6466ac490a92446045fd (patch) | |
tree | 4722040b609a8f48a59e24ae4ffc28b2a7904318 /drivers/mtd/nand/raw | |
parent | 44d73223fefd8f93be7d94a6eaf897a3c88e3ffb (diff) | |
download | linux-stable-35a441eea7032d08844b6466ac490a92446045fd.tar.gz linux-stable-35a441eea7032d08844b6466ac490a92446045fd.tar.bz2 linux-stable-35a441eea7032d08844b6466ac490a92446045fd.zip |
mtd: rawnand: gpmi: remove unneeded variable
Return status directly from function called.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211213112627.436745-1-chi.minghao@zte.com.cn
Diffstat (limited to 'drivers/mtd/nand/raw')
-rw-r--r-- | drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 5 |
1 files changed, 1 insertions, 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 65bcd1c548d2..feccff8bdd15 100644 --- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c +++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c @@ -1436,7 +1436,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"); @@ -1456,9 +1455,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); } /* |