[Devel] [PATCH rh7] ploop: Remove useless variable

Kirill Tkhai ktkhai at virtuozzo.com
Tue Jul 2 11:25:39 MSK 2019


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 d392d60b67c3..3131f3f942fc 100644
--- a/drivers/block/ploop/io_direct.c
+++ b/drivers/block/ploop/io_direct.c
@@ -260,7 +260,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);
@@ -268,8 +267,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