hw/ppc/ppc4xx_pci: Replace pointless warning by assert()
commitf5f239315cbf047aef51022ecb083fc7662c660a
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 1 Sep 2020 10:40:42 +0000 (1 12:40 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 8 Sep 2020 00:08:43 +0000 (8 10:08 +1000)
tree3a5ecf4380e1f0f1b4889c1d3c11f5bbaa07fe91
parent4192920cbc962770d54cd932748f913a7b1fe3c7
hw/ppc/ppc4xx_pci: Replace pointless warning by assert()

We call pci_register_root_bus() to register 4 IRQs with the
ppc4xx_pci_set_irq() handler. As it can only be called with
values in the [0-4[ range, replace the pointless warning by
an assert().

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200901104043.91383-5-f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/ppc4xx_pci.c