diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-04-05 09:39:06 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:36 -0400 |
commit | 07004b12a1199f82c016eb976f493e5b70820a1d (patch) | |
tree | e597f0c1880f4a49e227dcc790034994ac2b6c48 /arch/x86/kernel/io_apic_64.c | |
parent | a2249cba2f1d7d06633de09c71353ae6b1567206 (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.c | 1 |
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++) { |