[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 18/20] intc: i8259: Convert Array allocation to g_new
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 18/20] intc: i8259: Convert Array allocation to g_new0 |
Date: |
Fri, 15 Aug 2014 19:15:09 +0400 |
From: Peter Crosthwaite <address@hidden>
To be more array friendly and to indicate the IRQs are initially
disconnected.
Signed-off-by: Peter Crosthwaite <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
hw/intc/i8259.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/intc/i8259.c b/hw/intc/i8259.c
index d0b0c52..a563b82 100644
--- a/hw/intc/i8259.c
+++ b/hw/intc/i8259.c
@@ -472,7 +472,7 @@ qemu_irq *i8259_init(ISABus *bus, qemu_irq parent_irq)
ISADevice *isadev;
int i;
- irq_set = g_malloc(ISA_NUM_IRQS * sizeof(qemu_irq));
+ irq_set = g_new0(qemu_irq, ISA_NUM_IRQS);
isadev = i8259_init_chip(TYPE_I8259, bus, true);
dev = DEVICE(isadev);
--
1.7.10.4
- [Qemu-devel] [PULL 14/20] qemu-options.hx: fix typo about l2tpv3, (continued)
- [Qemu-devel] [PULL 14/20] qemu-options.hx: fix typo about l2tpv3, Michael Tokarev, 2014/08/15
- [Qemu-devel] [PULL 16/20] ssi: xilinx_spi: Initialise CS GPIOs as NULL, Michael Tokarev, 2014/08/15
- [Qemu-devel] [PULL 20/20] ivshmem: check the value returned by fstat(), Michael Tokarev, 2014/08/15
- [Qemu-devel] [PULL 12/20] vl: don't use 'Yoda conditions', Michael Tokarev, 2014/08/15
- [Qemu-devel] [PULL 11/20] spice: don't use 'Yoda conditions', Michael Tokarev, 2014/08/15
- [Qemu-devel] [PULL 04/20] pci-host: update obsolete reference about piix_pci.c, Michael Tokarev, 2014/08/15
- [Qemu-devel] [PULL 09/20] isa-bus: don't use 'Yoda conditions', Michael Tokarev, 2014/08/15
- [Qemu-devel] [PULL 03/20] qemu-options.hx: fix a typo of chardev, Michael Tokarev, 2014/08/15
- [Qemu-devel] [PULL 05/20] pci-host: update uncorresponding description, Michael Tokarev, 2014/08/15
- [Qemu-devel] [PULL 10/20] don't use 'Yoda conditions', Michael Tokarev, 2014/08/15
- [Qemu-devel] [PULL 18/20] intc: i8259: Convert Array allocation to g_new0,
Michael Tokarev <=
- [Qemu-devel] [PULL 17/20] ppc: convert g_new(qemu_irq usages to g_new0, Michael Tokarev, 2014/08/15
- [Qemu-devel] [PULL 15/20] vl: free err, Michael Tokarev, 2014/08/15
- Re: [Qemu-devel] [PULL 00/20] Trivial patches for 2014-08-15, Peter Maydell, 2014/08/18