aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc_newworld.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-12-21 16:18:02 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2012-01-27 10:28:30 -0600
commit8a5faa1d3eeed16cce6f20ce4b5bda453f0469e2 (patch)
treeaf8211107a2e874e4e707fff59ed871952377087 /hw/ppc_newworld.c
parentd8c51b052b6a9fe47477c4756ac69a070b176343 (diff)
downloadqemu-8a5faa1d3eeed16cce6f20ce4b5bda453f0469e2.zip
qemu-8a5faa1d3eeed16cce6f20ce4b5bda453f0469e2.tar.gz
qemu-8a5faa1d3eeed16cce6f20ce4b5bda453f0469e2.tar.bz2
openpic: remove dead code to make a PCI device version
bus is always NULL so the code in this if clause is dead (and therefore untested). Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ppc_newworld.c')
-rw-r--r--hw/ppc_newworld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc_newworld.c b/hw/ppc_newworld.c
index a746c9c..506187b 100644
--- a/hw/ppc_newworld.c
+++ b/hw/ppc_newworld.c
@@ -311,7 +311,7 @@ static void ppc_core99_init (ram_addr_t ram_size,
exit(1);
}
}
- pic = openpic_init(NULL, &pic_mem, smp_cpus, openpic_irqs, NULL);
+ pic = openpic_init(&pic_mem, smp_cpus, openpic_irqs, NULL);
if (PPC_INPUT(env) == PPC_FLAGS_INPUT_970) {
/* 970 gets a U3 bus */
pci_bus = pci_pmac_u3_init(pic, get_system_memory(), get_system_io());