[rh7] ploop: Remove useless variable

Submitted by Kirill Tkhai on July 2, 2019, 8:25 a.m.

Details

Message ID 156205593615.29360.12942383684060427952.stgit@localhost.localdomain
State New
Series "ploop: Remove useless variable"
Headers show

Commit Message

Kirill Tkhai July 2, 2019, 8:25 a.m.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 drivers/block/ploop/io_direct.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

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);