summaryrefslogtreecommitdiff
path: root/drivers/mtd/nftlcore.c
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2021-04-14 04:31:14 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-05-10 13:11:46 +0300
commit16a7af2ecc2217ba8c317fdd2ca177bbc7b0a8d2 (patch)
tree1683d6f9cdc910f110900e40fc44ada7f9e640ee /drivers/mtd/nftlcore.c
parentce675043fa12dfc50276e00f31da61e14846b178 (diff)
downloadlinux-16a7af2ecc2217ba8c317fdd2ca177bbc7b0a8d2.tar.xz
mtd: nftlcore: remove set but rewrite variables
The value of lastEUN is not used at line 622, and will rewrite a new value at line 541. so just remote the line at 622. Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/1618363874-25113-1-git-send-email-tiantao6@hisilicon.com
Diffstat (limited to 'drivers/mtd/nftlcore.c')
-rw-r--r--drivers/mtd/nftlcore.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/nftlcore.c b/drivers/mtd/nftlcore.c
index bcd0094f172d..913db0dd6a8d 100644
--- a/drivers/mtd/nftlcore.c
+++ b/drivers/mtd/nftlcore.c
@@ -619,7 +619,6 @@ static inline u16 NFTL_findwriteunit(struct NFTLrecord *nftl, unsigned block)
return BLOCK_NIL;
}
//printk("Restarting scan\n");
- lastEUN = BLOCK_NIL;
continue;
}