Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy(a)virtuozzo.com>
---
src/qemu/qemu_process.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 49ee8fe..9bbc9dc 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -8172,7 +8172,7 @@ qemuProcessRefreshLegacyBlockjob(void *payload,
if (disk->mirrorJob == VIR_DOMAIN_BLOCK_JOB_TYPE_COPY) {
if (qemuDomainDetermineDiskChain(priv->driver, vm, disk,
disk->mirror, true) < 0)
- goto cleanup;
+ return 0;
if (disk->mirror->format &&
disk->mirror->format != VIR_STORAGE_FILE_RAW &&
@@ -8180,14 +8180,11 @@ qemuProcessRefreshLegacyBlockjob(void *payload,
qemuSetupImageChainCgroup(vm, disk->mirror) < 0 ||
qemuSecuritySetImageLabel(priv->driver, vm, disk->mirror,
true, true) < 0))
- goto cleanup;
+ return 0;
}
}
qemuBlockJobStarted(job, vm);
-
- cleanup:
-
return 0;
}
--
1.8.3.1