From: Rakesh Pandit Date: Fri, 13 Oct 2017 12:46:29 +0000 (+0200) Subject: lightnvm: pblk: remove useless line X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e480689bd1cc35f6ed3fa628bc8d913177b0726a;p=openwrt%2Fstaging%2Fblogic.git lightnvm: pblk: remove useless line Signed-off-by: Rakesh Pandit Signed-off-by: Matias Bjørling Signed-off-by: Jens Axboe --- diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index e38e91897246..43866ad87586 100644 --- a/drivers/lightnvm/pblk-core.c +++ b/drivers/lightnvm/pblk-core.c @@ -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) {