nvmet: avoid unneeded assignment of submit_bio return value
authorMax Gurtovoy <maxg@mellanox.com>
Mon, 10 Jul 2017 14:24:02 +0000 (17:24 +0300)
committerSagi 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

index 40128793e61350f59c2bb136e91efcb6e83dc649..3b4d47a6abdb8337419f3e8e054c9a00e1147091 100644 (file)
@@ -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;