Skip to content

Commit 5d30f3b

Browse files
Javier Gonzálezaxboe
authored andcommitted
lightnvm: clean unused variable
Clean unused variable on lightnvm core. Signed-off-by: Javier González <[email protected]> Signed-off-by: Matias Bjørling <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 46b160c commit 5d30f3b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/lightnvm/core.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,6 @@ void nvm_part_to_tgt(struct nvm_dev *dev, sector_t *entries,
501501
int *lun_roffs;
502502
struct ppa_addr gaddr;
503503
u64 pba = le64_to_cpu(entries[i]);
504-
int off;
505504
u64 diff;
506505

507506
if (!pba)
@@ -511,8 +510,6 @@ void nvm_part_to_tgt(struct nvm_dev *dev, sector_t *entries,
511510
ch_rmap = &dev_rmap->chnls[gaddr.g.ch];
512511
lun_roffs = ch_rmap->lun_offs;
513512

514-
off = gaddr.g.ch * geo->luns_per_chnl + gaddr.g.lun;
515-
516513
diff = ((ch_rmap->ch_off * geo->luns_per_chnl) +
517514
(lun_roffs[gaddr.g.lun])) * geo->sec_per_lun;
518515

0 commit comments

Comments
 (0)