hw/arm/sbsa-ref: Simplify init since PCIe is always enabled
PATCH 1/1 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 <[email protected]>
--- hw/arm/sbsa-ref.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
hw/arm/sbsa-ref.c +2 -3
@@ -672,9 +672,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" );
Signature · 1 line
2.43.0
Quoted 7 lines · Marcin Juszkiewicz
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 <[email protected]>--- hw/arm/sbsa-ref.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Peter Maydell
AppliedQuoted 8 lines · Marcin Juszkiewicz
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 <[email protected]>--- hw/arm/sbsa-ref.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
Applied to target-arm.next, thanks.
-- PMM