diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2014-08-15 01:15:10 -0700 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-08-15 18:54:50 +0400 |
commit | aa2ac1dac3d27b412e2dba4cde38724446751344 (patch) | |
tree | d2b6184d6f08ec6d0e83a1d3b82430834540f26e /hw/intc | |
parent | c75f3c041aff0d6192049860a8f7b4db40ec0603 (diff) |
ppc: convert g_new(qemu_irq usages to g_new0
To indicate the IRQs are initially disconnected.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/intc')
-rw-r--r-- | hw/intc/openpic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/intc/openpic.c b/hw/intc/openpic.c index 028529e13d..7d1f3b9497 100644 --- a/hw/intc/openpic.c +++ b/hw/intc/openpic.c @@ -1627,7 +1627,7 @@ static void openpic_realize(DeviceState *dev, Error **errp) } for (i = 0; i < opp->nb_cpus; i++) { - opp->dst[i].irqs = g_new(qemu_irq, OPENPIC_OUTPUT_NB); + opp->dst[i].irqs = g_new0(qemu_irq, OPENPIC_OUTPUT_NB); for (j = 0; j < OPENPIC_OUTPUT_NB; j++) { sysbus_init_irq(d, &opp->dst[i].irqs[j]); } |