From: Peter Krempa Date: Mon, 27 May 2019 13:20:21 +0000 (+0200) Subject: qemu: blockjob: Don't reset state when entering sync blockjob X-Git-Tag: v5.6.0-rc1~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3149e00ab191324e503568d7487faad6efbc480f;p=thirdparty%2Flibvirt.git qemu: blockjob: Don't reset state when entering sync blockjob 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 Reviewed-by: Ján Tomko --- 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; }