diff options
author | Max Gurtovoy <maxg@mellanox.com> | 2017-07-10 17:24:02 +0300 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2017-07-10 18:45:38 +0300 |
commit | c2f30f08c115a6bb9061afb4ba314f7e41f20686 (patch) | |
tree | 0727ff0b4303b425c53b81778c0598dbb3a119b6 | |
parent | b27c1e683d2c8cd666a042b02096d18237911a37 (diff) | |
download | linux-rt-c2f30f08c115a6bb9061afb4ba314f7e41f20686.tar.gz |
nvmet: avoid unneeded assignment of submit_bio return value
We actually using the cookie returned from the last submit_bio
call.
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
-rw-r--r-- | drivers/nvme/target/io-cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/io-cmd.c b/drivers/nvme/target/io-cmd.c index 40128793e613..3b4d47a6abdb 100644 --- a/drivers/nvme/target/io-cmd.c +++ b/drivers/nvme/target/io-cmd.c @@ -85,7 +85,7 @@ static void nvmet_execute_rw(struct nvmet_req *req) bio_set_op_attrs(bio, op, op_flags); bio_chain(bio, prev); - cookie = submit_bio(prev); + submit_bio(prev); } sector += sg->length >> 9; |