Skip to contentSkip to conversation

lightnvm: pblk: remove useless line

PATCH In review Rakesh Pandit 2 participants 2 messages Oct 1, 2017 – Oct 2, 2017 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 lightnvm: pblk: remove useless line

---
 drivers/lightnvm/pblk-core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/lightnvm/pblk-core.c +0 -1
index 1f8aa94..4ffd1d6 100644
@@ -1053,7 +1053,6 @@ static int pblk_line_init_bb(struct pblk *pblk, struct pblk_line *line,
 	/* Mark emeta metadata sectors as bad sectors. We need to consider bad
 	 * blocks to make sure that there are enough sectors to store emeta
 	 */
-	bit = lm->sec_per_line;
 	off = lm->sec_per_line - lm->emeta_sec[0];
 	bitmap_set(line->invalid_bitmap, off, lm->emeta_sec[0]);
 	while (nr_bb) {
Signature · 1 line
2.7.4
Reviewed-by on v1 1/6
#1 lore raw
Quoted 20 lines · Rakesh Pandit

---
drivers/lightnvm/pblk-core.c | 1 -

1 file changed, 1 deletion(-)
drivers/lightnvm/pblk-core.c +0 -2
index 1f8aa94..4ffd1d6 100644
@@ -1053,7 +1053,6 @@ static int pblk_line_init_bb(struct pblk *pblk, struct pblk_line *line,
 	/* Mark emeta metadata sectors as bad sectors. We need to consider bad
 	 * blocks to make sure that there are enough sectors to store emeta
 	 */
-	bit = lm->sec_per_line;
 	off = lm->sec_per_line - lm->emeta_sec[0];
 	bitmap_set(line->invalid_bitmap, off, lm->emeta_sec[0]);
 	while (nr_bb) {
--
Quoted 1 line

2.7.4

LGTM