[PATCH] mtd: nftlcore: remove set but rewrite variables

Tian Tao tiantao6 at hisilicon.com
Wed Apr 14 02:31:14 BST 2021


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 at hisilicon.com>
---
 drivers/mtd/nftlcore.c | 1 -
 1 file changed, 1 deletion(-)

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;
 		}
 
-- 
2.7.4




More information about the linux-mtd mailing list