Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nvmet: avoid unneeded assignment of submit_bio return value

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>

authored by

Max Gurtovoy and committed by
Sagi Grimberg
c2f30f08 b27c1e68

+1 -1
+1 -1
drivers/nvme/target/io-cmd.c
··· 85 85 bio_set_op_attrs(bio, op, op_flags); 86 86 87 87 bio_chain(bio, prev); 88 - cookie = submit_bio(prev); 88 + submit_bio(prev); 89 89 } 90 90 91 91 sector += sg->length >> 9;