]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: blockjob: Don't reset state when entering sync blockjob
authorPeter Krempa <pkrempa@redhat.com>
Mon, 27 May 2019 13:20:21 +0000 (15:20 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 15 Jul 2019 08:26:23 +0000 (10:26 +0200)
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@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_blockjob.c

index 34a4047210fa54ff6e720c3136d49b97fe5663eb..a4662342a7243bc6d36d7e5708f0ecdbe421565d 100644 (file)
@@ -428,7 +428,6 @@ qemuBlockJobSyncBegin(qemuBlockJobDataPtr job)
 
     VIR_DEBUG("disk=%s", NULLSTR(diskdst));
     job->synchronous = true;
-    job->newstate = -1;
 }