qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/2] hw/pci/pci.c : changed the access to ObjectClas


From: Yoni Bettan
Subject: [Qemu-devel] [PATCH 2/2] hw/pci/pci.c : changed the access to ObjectClass to use OBJECT_CLASS macro
Date: Tue, 28 Nov 2017 07:51:11 +0200

Signed-off-by: Yoni Bettan <address@hidden>
---
 hw/pci/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index 02f6f2f37a..d2bf749251 100644
--- a/hw/pci/pci.c
+++ b/hw/pci/pci.c
@@ -2014,7 +2014,7 @@ static void pci_qdev_realize(DeviceState *qdev, Error 
**errp)
 {
     PCIDevice *pci_dev = (PCIDevice *)qdev;
     PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev);
-    ObjectClass *klass = &(pc->parent_class.parent_class);
+    ObjectClass *klass = OBJECT_CLASS(pc);
     Error *local_err = NULL;
     PCIBus *bus;
     bool is_default_rom;
-- 
2.13.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]