diff options
author | Hans Holmberg <hans.holmberg@cnexlabs.com> | 2018-12-11 22:16:16 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-12-11 22:22:34 +0300 |
commit | e698d9f4e6254b838e4f1a3116ee069bbc378dc0 (patch) | |
tree | 82e8977d64c6cbecfa89fdbd914dfe8fda73377c /drivers/lightnvm/pblk-recovery.c | |
parent | 0934ce87b588a3da657b41804bf07518103875a4 (diff) | |
download | linux-e698d9f4e6254b838e4f1a3116ee069bbc378dc0.tar.xz |
lightnvm: pblk: remove dead code in pblk_recov_l2p
Remove the call to pblk_line_replace_data as it returns
directly because we have not set l_mg->data_next yet.
Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Reviewed-by: Javier González <javier@javigon.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/pblk-recovery.c')
-rw-r--r-- | drivers/lightnvm/pblk-recovery.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/lightnvm/pblk-recovery.c b/drivers/lightnvm/pblk-recovery.c index 0fbd30e0a587..416d9840544b 100644 --- a/drivers/lightnvm/pblk-recovery.c +++ b/drivers/lightnvm/pblk-recovery.c @@ -805,7 +805,6 @@ next: WARN_ON_ONCE(!test_and_clear_bit(meta_line, &l_mg->meta_bitmap)); spin_unlock(&l_mg->free_lock); - pblk_line_replace_data(pblk); } else { spin_lock(&l_mg->free_lock); /* Allocate next line for preparation */ |