summaryrefslogtreecommitdiffstats
path: root/hw/ppc/ppc440_uc.c
diff options
context:
space:
mode:
authorMarkus Armbruster2020-06-09 14:23:28 +0200
committerMarkus Armbruster2020-06-15 21:36:21 +0200
commitb15fe4a018a019707793c178cba05ee5600389f6 (patch)
tree3f8f5951f05aa2565ae926c3a28b9486c89046a6 /hw/ppc/ppc440_uc.c
parentMAINTAINERS: Make section PowerNV cover pci-host/pnv* as well (diff)
downloadqemu-b15fe4a018a019707793c178cba05ee5600389f6.tar.gz
qemu-b15fe4a018a019707793c178cba05ee5600389f6.tar.xz
qemu-b15fe4a018a019707793c178cba05ee5600389f6.zip
ppc4xx: Drop redundant device realization
object_property_set_bool(OBJECT(dev), true, "realized", ...) right after qdev_init_nofail(dev) does nothing, because qdev_init_nofail() already realizes. Drop. Cc: BALATON Zoltan <balaton@eik.bme.hu> Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20200609122339.937862-14-armbru@redhat.com>
Diffstat (limited to 'hw/ppc/ppc440_uc.c')
-rw-r--r--hw/ppc/ppc440_uc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/ppc/ppc440_uc.c b/hw/ppc/ppc440_uc.c
index b30e093cbb..dc318c7aa7 100644
--- a/hw/ppc/ppc440_uc.c
+++ b/hw/ppc/ppc440_uc.c
@@ -1370,12 +1370,10 @@ void ppc460ex_pcie_init(CPUPPCState *env)
dev = qdev_create(NULL, TYPE_PPC460EX_PCIE_HOST);
qdev_prop_set_int32(dev, "dcrn-base", DCRN_PCIE0_BASE);
qdev_init_nofail(dev);
- object_property_set_bool(OBJECT(dev), true, "realized", NULL);
ppc460ex_pcie_register_dcrs(PPC460EX_PCIE_HOST(dev), env);
dev = qdev_create(NULL, TYPE_PPC460EX_PCIE_HOST);
qdev_prop_set_int32(dev, "dcrn-base", DCRN_PCIE1_BASE);
qdev_init_nofail(dev);
- object_property_set_bool(OBJECT(dev), true, "realized", NULL);
ppc460ex_pcie_register_dcrs(PPC460EX_PCIE_HOST(dev), env);
}