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