aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/io_apic_64.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2008-04-05 09:39:06 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:36 -0400
commit07004b12a1199f82c016eb976f493e5b70820a1d (patch)
treee597f0c1880f4a49e227dcc790034994ac2b6c48 /arch/x86/kernel/io_apic_64.c
parenta2249cba2f1d7d06633de09c71353ae6b1567206 (diff)
x86: remove unnecessary memset()
No need to clear the memory allocated by alloc_bootmem(). It is already filled with zero. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/io_apic_64.c')
-rw-r--r--arch/x86/kernel/io_apic_64.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c
index 6e383e126db2..616c53afb711 100644
--- a/arch/x86/kernel/io_apic_64.c
+++ b/arch/x86/kernel/io_apic_64.c
@@ -2315,7 +2315,6 @@ static struct resource * __init ioapic_setup_resources(void)
2315 res = (void *)mem; 2315 res = (void *)mem;
2316 2316
2317 if (mem != NULL) { 2317 if (mem != NULL) {
2318 memset(mem, 0, n);
2319 mem += sizeof(struct resource) * nr_ioapics; 2318 mem += sizeof(struct resource) * nr_ioapics;
2320 2319
2321 for (i = 0; i < nr_ioapics; i++) { 2320 for (i = 0; i < nr_ioapics; i++) {