diff options
author | Igor Mammedov | 2022-06-08 15:53:37 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2022-06-10 01:32:49 +0200 |
commit | d3ecb22c939ebbf92aa9d28b912a3b8a947a54f1 (patch) | |
tree | 0d2ab13b671893017be5b7a7cf1ed47ddc7f9e23 /hw/i386/acpi-build.c | |
parent | acpi: pc/q35: tpm-tis: fix TPM device scope (diff) | |
download | qemu-d3ecb22c939ebbf92aa9d28b912a3b8a947a54f1.tar.gz qemu-d3ecb22c939ebbf92aa9d28b912a3b8a947a54f1.tar.xz qemu-d3ecb22c939ebbf92aa9d28b912a3b8a947a54f1.zip |
acpi: pc/q35: remove not needed 'if' condition on pci bus
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Ani Sinha <ani@anisinha.ca>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20220608135340.3304695-33-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386/acpi-build.c')
-rw-r--r-- | hw/i386/acpi-build.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 6b496480d2..1204b6da05 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -1797,16 +1797,10 @@ build_dsdt(GArray *table_data, BIOSLinker *linker, sb_scope = aml_scope("\\_SB"); { - Object *pci_host; - PCIBus *bus = NULL; - - pci_host = acpi_get_i386_pci_host(); + Object *pci_host = acpi_get_i386_pci_host(); if (pci_host) { - bus = PCI_HOST_BRIDGE(pci_host)->bus; - } - - if (bus) { + PCIBus *bus = PCI_HOST_BRIDGE(pci_host)->bus; Aml *scope = aml_scope("PCI0"); /* Scan all PCI buses. Generate tables to support hotplug. */ build_append_pci_bus_devices(scope, bus, pm->pcihp_bridge_en); |