From: Philippe Mathieu-Daudé Date: Thu, 10 Sep 2020 07:23:25 +0000 (+0200) Subject: hw/ppc/ppc4xx_pci: Replace magic value by the PCI_NUM_PINS definition X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0a7553725ed7ecda63a3463c49d7a86bfe871e58;p=qemu.git hw/ppc/ppc4xx_pci: Replace magic value by the PCI_NUM_PINS definition Replace the magic '4' value by the PCI_NUM_PINS definition. Suggested-by: Cédric Le Goater Signed-off-by: Philippe Mathieu-Daudé Acked-by: David Gibson Reviewed-by: Richard Henderson Message-Id: <20200910072325.439344-3-f4bug@amsat.org> Signed-off-by: Laurent Vivier --- diff --git a/hw/ppc/ppc4xx_pci.c b/hw/ppc/ppc4xx_pci.c index c24bac96c3..ca2553bf8b 100644 --- a/hw/ppc/ppc4xx_pci.c +++ b/hw/ppc/ppc4xx_pci.c @@ -56,7 +56,7 @@ struct PPC4xxPCIState { struct PCIMasterMap pmm[PPC4xx_PCI_NR_PMMS]; struct PCITargetMap ptm[PPC4xx_PCI_NR_PTMS]; - qemu_irq irq[4]; + qemu_irq irq[PCI_NUM_PINS]; MemoryRegion container; MemoryRegion iomem;