[libvirt] [PATCH 1/4] qemu: blockjob: Don't reset state when entering sync blockjob

Peter Krempa pkrempa at redhat.com
Thu Jul 11 14:56:02 UTC 2019


job->newstate is now used internally all the time so there's no need to
clear it as it already has correct value.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/qemu/qemu_blockjob.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/qemu/qemu_blockjob.c b/src/qemu/qemu_blockjob.c
index 34a4047210..a4662342a7 100644
--- a/src/qemu/qemu_blockjob.c
+++ b/src/qemu/qemu_blockjob.c
@@ -428,7 +428,6 @@ qemuBlockJobSyncBegin(qemuBlockJobDataPtr job)

     VIR_DEBUG("disk=%s", NULLSTR(diskdst));
     job->synchronous = true;
-    job->newstate = -1;
 }


-- 
2.21.0




More information about the libvir-list mailing list