mirror of https://github.com/xemu-project/xemu.git
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
|
@ -664,9 +664,8 @@ static void create_pcie(SBSAMachineState *sms)
|
|||
}
|
||||
|
||||
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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue