提交 1c2866a1 编写于 作者: L Laine Stump

qemu_hotplug: rename a virDomainDeviceInfoPtr to avoid confusion

Having an InfoPtr named "dev" made my brain hurt. Renaming it to
"info" gives one less thing to confuse when looking at the code.
Signed-off-by: NLaine Stump <laine@laine.org>
ACKed-by: NPeter Krempa <pkrempa@redhat.com>
上级 155064e0
...@@ -4380,12 +4380,12 @@ static int qemuComparePCIDevice(virDomainDefPtr def ATTRIBUTE_UNUSED, ...@@ -4380,12 +4380,12 @@ static int qemuComparePCIDevice(virDomainDefPtr def ATTRIBUTE_UNUSED,
} }
static bool qemuIsMultiFunctionDevice(virDomainDefPtr def, static bool qemuIsMultiFunctionDevice(virDomainDefPtr def,
virDomainDeviceInfoPtr dev) virDomainDeviceInfoPtr info)
{ {
if (dev->type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI) if (info->type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI)
return false; return false;
if (virDomainDeviceInfoIterate(def, qemuComparePCIDevice, dev) < 0) if (virDomainDeviceInfoIterate(def, qemuComparePCIDevice, info) < 0)
return true; return true;
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册