mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 14:35:25 +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
|
static int
|
||||||
qemuDomainDetachDeviceLive(virDomainObjPtr vm,
|
qemuDomainDetachDeviceLive(virDomainObjPtr vm,
|
||||||
virDomainDeviceDefPtr dev,
|
virDomainDeviceDefPtr dev,
|
||||||
virDomainPtr dom)
|
virQEMUDriverPtr driver)
|
||||||
{
|
{
|
||||||
virQEMUDriverPtr driver = dom->conn->privateData;
|
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
switch ((virDomainDeviceType) dev->type) {
|
switch ((virDomainDeviceType) dev->type) {
|
||||||
@ -8402,7 +8401,7 @@ qemuDomainDetachDeviceFlags(virDomainPtr dom,
|
|||||||
VIR_DOMAIN_DEVICE_ACTION_DETACH) < 0)
|
VIR_DOMAIN_DEVICE_ACTION_DETACH) < 0)
|
||||||
goto endjob;
|
goto endjob;
|
||||||
|
|
||||||
if ((ret = qemuDomainDetachDeviceLive(vm, dev_copy, dom)) < 0)
|
if ((ret = qemuDomainDetachDeviceLive(vm, dev_copy, driver)) < 0)
|
||||||
goto endjob;
|
goto endjob;
|
||||||
/*
|
/*
|
||||||
* update domain status forcibly because the domain status may be
|
* update domain status forcibly because the domain status may be
|
||||||
|
Loading…
Reference in New Issue
Block a user