diff options
author | Igor Mammedov <imammedo@redhat.com> | 2022-11-29 11:13:41 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-12-21 07:32:24 -0500 |
commit | ad4942746cb428f649f854e1d13622a745f603a5 (patch) | |
tree | 91c81e1c931d68186f6152c9782e445417286195 /hw/pci-bridge/simba.c | |
parent | b1fbf24259188717e8b52eecaf8ca66da3e6ac58 (diff) | |
download | qemu-ad4942746cb428f649f854e1d13622a745f603a5.zip qemu-ad4942746cb428f649f854e1d13622a745f603a5.tar.gz qemu-ad4942746cb428f649f854e1d13622a745f603a5.tar.bz2 |
pci: drop redundant PCIDeviceClass::is_bridge field
and use cast to TYPE_PCI_BRIDGE instead.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221129101341.185621-3-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'hw/pci-bridge/simba.c')
-rw-r--r-- | hw/pci-bridge/simba.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/pci-bridge/simba.c b/hw/pci-bridge/simba.c index ba55ab1..17aa0d7 100644 --- a/hw/pci-bridge/simba.c +++ b/hw/pci-bridge/simba.c @@ -77,7 +77,6 @@ static void simba_pci_bridge_class_init(ObjectClass *klass, void *data) k->device_id = PCI_DEVICE_ID_SUN_SIMBA; k->revision = 0x11; k->config_write = pci_bridge_write_config; - k->is_bridge = true; set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); dc->reset = pci_bridge_reset; dc->vmsd = &vmstate_pci_device; |