aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/io_apic.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-10-04 14:18:30 +0200
committerJan Beulich <jbeulich@suse.com>2011-10-04 14:18:30 +0200
commit1527de3f85fa0c94578fdd12792588e0825ef2eb (patch)
treedd39a33980d9c79ffbd93afc7fe3aa71e990c1df /xen/arch/x86/io_apic.c
parent91f47f155288b0116472a7ce64d8709f144a5357 (diff)
downloadxen-1527de3f85fa0c94578fdd12792588e0825ef2eb.tar.gz
xen-1527de3f85fa0c94578fdd12792588e0825ef2eb.tar.bz2
xen-1527de3f85fa0c94578fdd12792588e0825ef2eb.zip
use xzalloc in x86 code
This includes the removal of a redundant memset() from microcode_amd.c. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/io_apic.c')
-rw-r--r--xen/arch/x86/io_apic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/arch/x86/io_apic.c b/xen/arch/x86/io_apic.c
index 95b0d22294..249e6941cc 100644
--- a/xen/arch/x86/io_apic.c
+++ b/xen/arch/x86/io_apic.c
@@ -1365,8 +1365,7 @@ static void __init enable_IO_APIC(void)
int i, apic;
/* Initialise dynamic irq_2_pin free list. */
- irq_2_pin = xmalloc_array(struct irq_pin_list, PIN_MAP_SIZE);
- memset(irq_2_pin, 0, PIN_MAP_SIZE * sizeof(*irq_2_pin));
+ irq_2_pin = xzalloc_array(struct irq_pin_list, PIN_MAP_SIZE);
for (i = 0; i < PIN_MAP_SIZE; i++)
irq_2_pin[i].pin = -1;