]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu_hotplug: rename a virDomainDeviceInfoPtr to avoid confusion
authorLaine Stump <laine@laine.org>
Mon, 18 Mar 2019 18:02:55 +0000 (14:02 -0400)
committerLaine Stump <laine@laine.org>
Mon, 25 Mar 2019 16:34:18 +0000 (12:34 -0400)
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>
src/qemu/qemu_hotplug.c

index f2aa3cc048b7bee7ab9536edba9bb3a48e51870d..701458b2cd799d393b6376079c40f3a822cdd14b 100644 (file)
@@ -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;
 }