mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
Narrow down a parameter in qemuDomainDetachDeviceFlags
This will make splitting up qemuDomainDetachDeviceFlags into two functions easier. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
166eabdbb9
commit
8bad904865
@ -7472,9 +7472,8 @@ qemuDomainDetachDeviceControllerLive(virQEMUDriverPtr driver,
|
||||
static int
|
||||
qemuDomainDetachDeviceLive(virDomainObjPtr vm,
|
||||
virDomainDeviceDefPtr dev,
|
||||
virDomainPtr dom)
|
||||
virQEMUDriverPtr driver)
|
||||
{
|
||||
virQEMUDriverPtr driver = dom->conn->privateData;
|
||||
int ret = -1;
|
||||
|
||||
switch ((virDomainDeviceType) dev->type) {
|
||||
@ -8402,7 +8401,7 @@ qemuDomainDetachDeviceFlags(virDomainPtr dom,
|
||||
VIR_DOMAIN_DEVICE_ACTION_DETACH) < 0)
|
||||
goto endjob;
|
||||
|
||||
if ((ret = qemuDomainDetachDeviceLive(vm, dev_copy, dom)) < 0)
|
||||
if ((ret = qemuDomainDetachDeviceLive(vm, dev_copy, driver)) < 0)
|
||||
goto endjob;
|
||||
/*
|
||||
* update domain status forcibly because the domain status may be
|
||||
|
Loading…
Reference in New Issue
Block a user