qemu_snapshot.c: remove uneeded 'cleanup' label in qemuSnapshotDelete()

Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
Daniel Henrique Barboza 2020-11-12 15:45:41 -03:00
parent 269dffd0ce
commit 0ea83f7ebb

View File

@ -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;
}