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:
Tomasz Flendrich 2016-07-16 02:42:49 +02:00 committed by Martin Kletzander
parent 166eabdbb9
commit 8bad904865

View File

@ -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