Blame SOURCES/libvirt-qemu_hotplug-rename-a-virDomainDeviceInfoPtr-to-avoid-confusion.patch

99cbc7
From d1c6b7242e843843fbf6c961047440c7983b142f Mon Sep 17 00:00:00 2001
99cbc7
Message-Id: <d1c6b7242e843843fbf6c961047440c7983b142f@dist-git>
99cbc7
From: Laine Stump <laine@laine.org>
99cbc7
Date: Thu, 11 Apr 2019 15:14:31 -0400
99cbc7
Subject: [PATCH] qemu_hotplug: rename a virDomainDeviceInfoPtr to avoid
99cbc7
 confusion
99cbc7
99cbc7
Having an InfoPtr named "dev" made my brain hurt. Renaming it to
99cbc7
"info" gives one less thing to confuse when looking at the code.
99cbc7
99cbc7
Signed-off-by: Laine Stump <laine@laine.org>
99cbc7
ACKed-by: Peter Krempa <pkrempa@redhat.com>
99cbc7
(cherry picked from commit 1c2866a1f6087837688c3c2beea08753dc6871d0)
99cbc7
99cbc7
Partially-Resolves: https://bugzilla.redhat.com/1658198
99cbc7
Signed-off-by: Laine Stump <laine@redhat.com>
99cbc7
Signed-off-by: Laine Stump <laine@laine.org>
99cbc7
Message-Id: <20190411191453.24055-20-laine@redhat.com>
99cbc7
Acked-by: Michal Privoznik <mprivozn@redhat.com>
99cbc7
---
99cbc7
 src/qemu/qemu_hotplug.c | 6 +++---
99cbc7
 1 file changed, 3 insertions(+), 3 deletions(-)
99cbc7
99cbc7
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
99cbc7
index 39e40e2740..2bfb5f8d54 100644
99cbc7
--- a/src/qemu/qemu_hotplug.c
99cbc7
+++ b/src/qemu/qemu_hotplug.c
99cbc7
@@ -3784,12 +3784,12 @@ static int qemuComparePCIDevice(virDomainDefPtr def ATTRIBUTE_UNUSED,
99cbc7
 }
99cbc7
 
99cbc7
 static bool qemuIsMultiFunctionDevice(virDomainDefPtr def,
99cbc7
-                                      virDomainDeviceInfoPtr dev)
99cbc7
+                                      virDomainDeviceInfoPtr info)
99cbc7
 {
99cbc7
-    if (dev->type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI)
99cbc7
+    if (info->type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI)
99cbc7
         return false;
99cbc7
 
99cbc7
-    if (virDomainDeviceInfoIterate(def, qemuComparePCIDevice, dev) < 0)
99cbc7
+    if (virDomainDeviceInfoIterate(def, qemuComparePCIDevice, info) < 0)
99cbc7
         return true;
99cbc7
     return false;
99cbc7
 }
99cbc7
-- 
99cbc7
2.21.0
99cbc7