summaryrefslogtreecommitdiff
path: root/drivers/nvme/target
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2018-12-13 10:01:54 +0300
committerChristoph Hellwig <hch@lst.de>2018-12-13 11:59:00 +0300
commit16d3a280d4d73eae786ebf2576cd597a031bc9df (patch)
treec1e50e25eb67546e630af97286e19df1805e5994 /drivers/nvme/target
parentcb5b7262b011cfb793519bf97e54dff5282da23c (diff)
downloadlinux-16d3a280d4d73eae786ebf2576cd597a031bc9df.tar.xz
nvmet: remove unused variable
Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/target')
-rw-r--r--drivers/nvme/target/io-cmd-bdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nvme/target/io-cmd-bdev.c b/drivers/nvme/target/io-cmd-bdev.c
index c1cb2ed5531c..e0831230ca27 100644
--- a/drivers/nvme/target/io-cmd-bdev.c
+++ b/drivers/nvme/target/io-cmd-bdev.c
@@ -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)