mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemu: hotplug: Remove pointless variable
Now that there's only one use of it, replace it directly by the code filling it. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
539f74e885
commit
f952dccb8f
@ -3758,7 +3758,6 @@ qemuDomainRemoveDiskDevice(virQEMUDriverPtr driver,
|
||||
virDomainDeviceDef dev;
|
||||
virObjectEventPtr event;
|
||||
size_t i;
|
||||
const char *src = virDomainDiskGetSource(disk);
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
char *drivestr;
|
||||
bool prManaged = priv->prDaemonRunning;
|
||||
@ -3829,7 +3828,7 @@ qemuDomainRemoveDiskDevice(virQEMUDriverPtr driver,
|
||||
if (prManaged && !prUsed)
|
||||
qemuProcessKillManagedPRDaemon(vm);
|
||||
|
||||
qemuDomainReleaseDeviceAddress(vm, &disk->info, src);
|
||||
qemuDomainReleaseDeviceAddress(vm, &disk->info, virDomainDiskGetSource(disk));
|
||||
|
||||
/* tear down disk security access */
|
||||
qemuHotplugPrepareDiskAccess(driver, vm, disk, NULL, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user