projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b27c1e6
)
nvmet: avoid unneeded assignment of submit_bio return value
author
Max Gurtovoy
<maxg@mellanox.com>
Mon, 10 Jul 2017 14:24:02 +0000
(17:24 +0300)
committer
Sagi Grimberg
<sagi@grimberg.me>
Mon, 10 Jul 2017 15:45:38 +0000
(18:45 +0300)
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>
drivers/nvme/target/io-cmd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/target/io-cmd.c
b/drivers/nvme/target/io-cmd.c
index 40128793e61350f59c2bb136e91efcb6e83dc649..3b4d47a6abdb8337419f3e8e054c9a00e1147091 100644
(file)
--- 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;