* [PATCH 1/1] nvmet: avoid unneeded assignment of submit_bio return value
@ 2017-07-10 14:24 Max Gurtovoy
2017-07-10 14:55 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Max Gurtovoy @ 2017-07-10 14:24 UTC (permalink / raw)
We actually using the cookie returned from the last submit_bio
call.
Signed-off-by: Max Gurtovoy <maxg at mellanox.com>
---
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 4012879..3b4d47a 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;
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 1/1] nvmet: avoid unneeded assignment of submit_bio return value
2017-07-10 14:24 [PATCH 1/1] nvmet: avoid unneeded assignment of submit_bio return value Max Gurtovoy
@ 2017-07-10 14:55 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2017-07-10 14:55 UTC (permalink / raw)
Looks fine,
Reviewed-by: Christoph Hellwig <hch at lst.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-10 14:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-10 14:24 [PATCH 1/1] nvmet: avoid unneeded assignment of submit_bio return value Max Gurtovoy
2017-07-10 14:55 ` Christoph Hellwig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.