Message ID | 20190731085208.26765-1-colin.king@canonical.com |
---|---|
State | Accepted |
Headers | show |
Series | mtd: rawnand: remove redundant assignment to variable ret | expand |
On Wed, 2019-07-31 at 08:52:08 UTC, Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > 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: Colin Ian King <colin.king@canonical.com> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel
diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index 91f046d4d452..5c2c30a7dffa 100644 --- a/drivers/mtd/nand/raw/nand_base.c +++ b/drivers/mtd/nand/raw/nand_base.c @@ -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;