Commit 80107e76 authored by Colin Ian King's avatar Colin Ian King Committed by Miquel Raynal
Browse files

mtd: rawnand: remove redundant assignment to variable ret



Variable ret is being initialized with a value that is never read
and ret is being re-assigned a little later on. The assignment is
redundant and hence can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 75de0eb2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4112,7 +4112,7 @@ static int nand_write_oob(struct mtd_info *mtd, loff_t to,
			  struct mtd_oob_ops *ops)
{
	struct nand_chip *chip = mtd_to_nand(mtd);
	int ret = -ENOTSUPP;
	int ret;

	ops->retlen = 0;