[Devel] [PATCH RHEL7 COMMIT] ploop: Remove useless variable

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jul 5 11:10:39 MSK 2019


The commit is pushed to "branch-rh7-3.10.0-957.21.3.vz7.106.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-957.21.3.vz7.106.4
------>
commit 2ea854ed4af4b4aa8a22648387410c07dccb5445
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Fri Jul 5 11:10:37 2019 +0300

    ploop: Remove useless variable
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/block/ploop/io_direct.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/block/ploop/io_direct.c b/drivers/block/ploop/io_direct.c
index 0bf97ad76ce2..abee1b2ae15c 100644
--- a/drivers/block/ploop/io_direct.c
+++ b/drivers/block/ploop/io_direct.c
@@ -257,7 +257,6 @@ dio_submit(struct ploop_io *io, struct ploop_request *preq,
 
 	while (bl.head) {
 		struct bio * b = bl.head;
-		unsigned long rw2 = rw;
 
 		bl.head = b->bi_next;
 		atomic_inc(&preq->io_count);
@@ -265,8 +264,8 @@ dio_submit(struct ploop_io *io, struct ploop_request *preq,
 		b->bi_private = preq;
 		b->bi_end_io = dio_endio_async;
 
-		ploop_acc_ff_out(plo, rw2 | b->bi_rw);
-		submit_bio(rw2, b);
+		ploop_acc_ff_out(plo, rw | b->bi_rw);
+		submit_bio(rw, b);
 	}
 complete:
 	ploop_complete_io_request(preq);



More information about the Devel mailing list