lightnvm: pblk: remove useless line
authorRakesh Pandit <rakesh@tuxera.com>
Fri, 13 Oct 2017 12:46:29 +0000 (14:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
Signed-off-by: Rakesh Pandit <rakesh@tuxera.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c

index e38e91897246d5bfe60e87d10ff380b97a25ae9b..43866ad87586a0139437d026e2087cb3848b48ff 100644 (file)
@@ -1071,7 +1071,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) {