mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-02 15:02:02 -06:00
hw/arm/sbsa-ref: Simplify init since PCIe is always enabled
There is no point in checking do we have PCIe if first thing after check is adding PCIe card without checking. Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20240215153311.186772-1-marcin.juszkiewicz@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
dccbaf0cc0
commit
5306ff73fe
1 changed files with 2 additions and 3 deletions
|
@ -664,9 +664,8 @@ static void create_pcie(SBSAMachineState *sms)
|
||||||
}
|
}
|
||||||
|
|
||||||
pci = PCI_HOST_BRIDGE(dev);
|
pci = PCI_HOST_BRIDGE(dev);
|
||||||
if (pci->bus) {
|
|
||||||
pci_init_nic_devices(pci->bus, mc->default_nic);
|
pci_init_nic_devices(pci->bus, mc->default_nic);
|
||||||
}
|
|
||||||
|
|
||||||
pci_create_simple(pci->bus, -1, "bochs-display");
|
pci_create_simple(pci->bus, -1, "bochs-display");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue