lightnvm: pblk: cleanup unnecessary code
authorJavier González <jg@lightnvm.io>
Mon, 26 Jun 2017 09:57:25 +0000 (11:57 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Jun 2017 22:27:39 +0000 (16:27 -0600)
Cleanup unnecessary headers and code lines.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c
drivers/lightnvm/pblk-write.c

index cba7cd78e4a678fc6acd9be213722798be6b81ac..d815cdad56b890a850de15dfe873cbac0d851a33 100644 (file)
@@ -17,7 +17,6 @@
  */
 
 #include "pblk.h"
-#include <linux/time.h>
 
 static void pblk_mark_bb(struct pblk *pblk, struct pblk_line *line,
                         struct ppa_addr *ppa)
index 3db2cbe5b788ff5891524d5d7a530dfadb161c71..a50bfbd12c327a1f022d7f227ff7ad510acb514b 100644 (file)
@@ -27,14 +27,8 @@ static unsigned long pblk_end_w_bio(struct pblk *pblk, struct nvm_rq *rqd,
 
        for (i = 0; i < c_ctx->nr_valid; i++) {
                struct pblk_w_ctx *w_ctx;
-               struct ppa_addr p;
-               struct pblk_line *line;
 
                w_ctx = pblk_rb_w_ctx(&pblk->rwb, c_ctx->sentry + i);
-
-               p = rqd->ppa_list[i];
-               line = &pblk->lines[pblk_dev_ppa_to_line(p)];
-
                while ((original_bio = bio_list_pop(&w_ctx->bios)))
                        bio_endio(original_bio);
        }