projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce67504
)
mtd: nftlcore: remove set but rewrite variables
author
Tian Tao
<tiantao6@hisilicon.com>
Wed, 14 Apr 2021 01:31:14 +0000
(09:31 +0800)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Mon, 10 May 2021 10:11:46 +0000
(12:11 +0200)
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
drivers/mtd/nftlcore.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nftlcore.c
b/drivers/mtd/nftlcore.c
index bcd0094f172dcc7ded69fdfa8179476adce5bf55..913db0dd6a8debde938a10e7b11af3421fa8ccef 100644
(file)
--- 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;
}