Remove redundant cleanup in qemuDomainAttachVirtioDiskDevice

Commit ca91ba7 moved these into the qemuDomainPrepareDisk helper,
but forgot to remove them from here as well.
This commit is contained in:
Ján Tomko 2014-12-18 12:45:04 +01:00
parent 1cddf0001f
commit 1adda68a1b

View File

@ -411,14 +411,6 @@ qemuDomainAttachVirtioDiskDevice(virConnectPtr conn,
qemuDomainReleaseDeviceAddress(vm, &disk->info, src);
ignore_value(qemuDomainPrepareDisk(driver, vm, disk, NULL, true));
if (virSecurityManagerRestoreDiskLabel(driver->securityManager,
vm->def, disk) < 0)
VIR_WARN("Unable to restore security label on %s", src);
if (virDomainLockDiskDetach(driver->lockManager, vm, disk) < 0)
VIR_WARN("Unable to release lock on %s", src);
goto cleanup;
}