lightnvm: remove unused 'geo' variable
authorJens Axboe <axboe@kernel.dk>
Fri, 9 Aug 2019 04:11:28 +0000 (22:11 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 9 Aug 2019 04:14:04 +0000 (22:14 -0600)
A previous commit correctly removed set-but-not-read variables, but
this left two new variables now unused. Kill them.

Fixes: ba6f7da99aaf ("lightnvm: remove set but not used variables 'data_len' and 'rq_len'")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-read.c

index 0cdc48f..8efd14e 100644 (file)
@@ -417,8 +417,6 @@ out:
 
 int pblk_submit_read_gc(struct pblk *pblk, struct pblk_gc_rq *gc_rq)
 {
-       struct nvm_tgt_dev *dev = pblk->dev;
-       struct nvm_geo *geo = &dev->geo;
        struct nvm_rq rqd;
        int ret = NVM_IO_OK;