Message ID | 1618363874-25113-1-git-send-email-tiantao6@hisilicon.com |
---|---|
State | Accepted |
Headers | show |
Series | mtd: nftlcore: remove set but rewrite variables | expand |
On Wed, 2021-04-14 at 01:31:14 UTC, Tian Tao wrote: > 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> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel
diff --git a/drivers/mtd/nftlcore.c b/drivers/mtd/nftlcore.c index bcd0094..913db0dd 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; }
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> --- drivers/mtd/nftlcore.c | 1 - 1 file changed, 1 deletion(-)