Skip to content

Commit

Permalink
nvmet: avoid unneeded assignment of submit_bio return value
Browse files Browse the repository at this point in the history
We actually using the cookie returned from the last submit_bio
call.

Signed-off-by: Max Gurtovoy <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Sagi Grimberg <[email protected]>
  • Loading branch information
Max Gurtovoy authored and sagigrimberg committed Jul 10, 2017
1 parent b27c1e6 commit c2f30f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/target/io-cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c2f30f0

Please sign in to comment.