From 0ea83f7ebb0b572ce3b561ee0c9497cc8910826e Mon Sep 17 00:00:00 2001 From: Daniel Henrique Barboza Date: Thu, 12 Nov 2020 15:45:41 -0300 Subject: [PATCH] qemu_snapshot.c: remove uneeded 'cleanup' label in qemuSnapshotDelete() Reviewed-by: Jonathon Jongsma Signed-off-by: Daniel Henrique Barboza --- src/qemu/qemu_snapshot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qemu/qemu_snapshot.c b/src/qemu/qemu_snapshot.c index e91716ffff..057b94e5b8 100644 --- a/src/qemu/qemu_snapshot.c +++ b/src/qemu/qemu_snapshot.c @@ -2314,7 +2314,7 @@ qemuSnapshotDelete(virDomainObjPtr vm, VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY, -1); if (qemuDomainObjBeginJob(driver, vm, QEMU_JOB_MODIFY) < 0) - goto cleanup; + return -1; if (!(snap = qemuSnapObjFromSnapshot(vm, snapshot))) goto endjob; @@ -2388,6 +2388,5 @@ qemuSnapshotDelete(virDomainObjPtr vm, endjob: qemuDomainObjEndJob(driver, vm); - cleanup: return ret; }