From: Max Gurtovoy Date: Mon, 10 Jul 2017 14:24:02 +0000 (+0300) Subject: nvmet: avoid unneeded assignment of submit_bio return value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c2f30f08c115a6bb9061afb4ba314f7e41f20686;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Christoph Hellwig Signed-off-by: Sagi Grimberg --- diff --git a/drivers/nvme/target/io-cmd.c b/drivers/nvme/target/io-cmd.c index 40128793e613..3b4d47a6abdb 100644 --- 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;