mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
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: Laine Stump <laine@laine.org> ACKed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
155064e0ed
commit
1c2866a1f6
@ -4380,12 +4380,12 @@ static int qemuComparePCIDevice(virDomainDefPtr def ATTRIBUTE_UNUSED,
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
if (virDomainDeviceInfoIterate(def, qemuComparePCIDevice, dev) < 0)
|
||||
if (virDomainDeviceInfoIterate(def, qemuComparePCIDevice, info) < 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user