Commit 35a441ee authored by Minghao Chi's avatar Minghao Chi Committed by Miquel Raynal
Browse files

mtd: rawnand: gpmi: remove unneeded variable

parent 44d73223
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);
}

/*