提交 8bad9048 编写于 作者: T Tomasz Flendrich 提交者: Martin Kletzander

Narrow down a parameter in qemuDomainDetachDeviceFlags

This will make splitting up qemuDomainDetachDeviceFlags into two
functions easier.
Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
上级 166eabdb
...@@ -7472,9 +7472,8 @@ qemuDomainDetachDeviceControllerLive(virQEMUDriverPtr driver, ...@@ -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, ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册