nvmet: remove unused variable
authorSagi Grimberg <sagi@grimberg.me>
Thu, 13 Dec 2018 07:01:54 +0000 (23:01 -0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 08:59:00 +0000 (09:59 +0100)
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/io-cmd-bdev.c

index c1cb2ed5531ce5d5164a473b5dc810df4e6804a0..e0831230ca275475141f2204032edf33990e598b 100644 (file)
@@ -61,7 +61,6 @@ static void nvmet_bdev_execute_rw(struct nvmet_req *req)
        struct bio *bio;
        struct scatterlist *sg;
        sector_t sector;
-       blk_qc_t cookie;
        int op, op_flags = 0, i;
 
        if (!req->sg_cnt) {
@@ -114,7 +113,7 @@ static void nvmet_bdev_execute_rw(struct nvmet_req *req)
                sg_cnt--;
        }
 
-       cookie = submit_bio(bio);
+       submit_bio(bio);
 }
 
 static void nvmet_bdev_execute_flush(struct nvmet_req *req)