[PATCH v2 04/10] qemu: remove stale cleanup in qemuProcessRefreshLegacyBlockjob

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux