Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2f30f08 authored by Max Gurtovoy's avatar Max Gurtovoy Committed by Sagi Grimberg
Browse files

nvmet: avoid unneeded assignment of submit_bio return value



We actually using the cookie returned from the last submit_bio
call.

Signed-off-by: default avatarMax Gurtovoy <maxg@mellanox.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarSagi Grimberg <sagi@grimberg.me>
parent b27c1e68
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;