mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-10 17:57:25 +03:00
qemu: driver: Remove dead code from qemuDomainSnapshotUpdateDiskSources
dd->src is always allocated in this function as it contains the new source for the snapshot which is meant to replace the disk source. The label handling code executed if that source was not present thus is dead code. Remove it. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
280aa77eaf
commit
6129a04d49
@ -15407,13 +15407,6 @@ qemuDomainSnapshotUpdateDiskSources(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
qemuDomainSnapshotDiskDataPtr dd)
|
||||
{
|
||||
if (!dd->src) {
|
||||
/* Remove old metadata */
|
||||
if (qemuSecurityMoveImageMetadata(driver, vm, dd->disk->src, NULL) < 0)
|
||||
VIR_WARN("Unable to remove disk metadata on vm %s", vm->def->name);
|
||||
return;
|
||||
}
|
||||
|
||||
/* storage driver access won'd be needed */
|
||||
if (dd->initialized)
|
||||
virStorageFileDeinit(dd->src);
|
||||
|
Loading…
x
Reference in New Issue
Block a user