qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] hw/arm/sbsa-ref: Simplify init since PCIe is always enabled
@ 2024-02-15 15:33 Marcin Juszkiewicz
  2024-02-15 15:35 ` Philippe Mathieu-Daudé
  2024-02-22 13:57 ` Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Marcin Juszkiewicz @ 2024-02-15 15:33 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Leif Lindholm, Radoslaw Biernacki, qemu-arm,
	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 <marcin.juszkiewicz@linaro.org>
---
 hw/arm/sbsa-ref.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c
index f2adf30337..b7d6ba2351 100644
--- a/hw/arm/sbsa-ref.c
+++ b/hw/arm/sbsa-ref.c
@@ -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");
 
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] hw/arm/sbsa-ref: Simplify init since PCIe is always enabled
  2024-02-15 15:33 [PATCH 1/1] hw/arm/sbsa-ref: Simplify init since PCIe is always enabled Marcin Juszkiewicz
@ 2024-02-15 15:35 ` Philippe Mathieu-Daudé
  2024-02-22 13:57 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-02-15 15:35 UTC (permalink / raw)
  To: Marcin Juszkiewicz, qemu-devel
  Cc: Peter Maydell, Leif Lindholm, Radoslaw Biernacki, qemu-arm

On 15/2/24 16:33, Marcin Juszkiewicz wrote:
> 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>
> ---
>   hw/arm/sbsa-ref.c | 5 ++---
>   1 file changed, 2 insertions(+), 3 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] hw/arm/sbsa-ref: Simplify init since PCIe is always enabled
  2024-02-15 15:33 [PATCH 1/1] hw/arm/sbsa-ref: Simplify init since PCIe is always enabled Marcin Juszkiewicz
  2024-02-15 15:35 ` Philippe Mathieu-Daudé
@ 2024-02-22 13:57 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2024-02-22 13:57 UTC (permalink / raw)
  To: Marcin Juszkiewicz
  Cc: qemu-devel, Leif Lindholm, Radoslaw Biernacki, qemu-arm

On Thu, 15 Feb 2024 at 15:33, Marcin Juszkiewicz
<marcin.juszkiewicz@linaro.org> wrote:
>
> 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>
> ---
>  hw/arm/sbsa-ref.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)



Applied to target-arm.next, thanks.

-- PMM


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-02-22 13:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-15 15:33 [PATCH 1/1] hw/arm/sbsa-ref: Simplify init since PCIe is always enabled Marcin Juszkiewicz
2024-02-15 15:35 ` Philippe Mathieu-Daudé
2024-02-22 13:57 ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).