]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
lightnvm: clean unused variable
authorJavier González <jg@lightnvm.io>
Sat, 15 Apr 2017 18:55:47 +0000 (20:55 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 16 Apr 2017 16:06:25 +0000 (10:06 -0600)
Clean unused variable on lightnvm core.

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

index eb9ab1ae37199b1c0b07a5956eddd4e8b57820bd..258007a6bc313a5ad429e9c49aa40603be8d34fc 100644 (file)
@@ -501,7 +501,6 @@ void nvm_part_to_tgt(struct nvm_dev *dev, sector_t *entries,
                int *lun_roffs;
                struct ppa_addr gaddr;
                u64 pba = le64_to_cpu(entries[i]);
-               int off;
                u64 diff;
 
                if (!pba)
@@ -511,8 +510,6 @@ void nvm_part_to_tgt(struct nvm_dev *dev, sector_t *entries,
                ch_rmap = &dev_rmap->chnls[gaddr.g.ch];
                lun_roffs = ch_rmap->lun_offs;
 
-               off = gaddr.g.ch * geo->luns_per_chnl + gaddr.g.lun;
-
                diff = ((ch_rmap->ch_off * geo->luns_per_chnl) +
                                (lun_roffs[gaddr.g.lun])) * geo->sec_per_lun;