diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-04-05 22:39:06 +0900 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 17:41:36 +0200 |
commit | 07004b12a1199f82c016eb976f493e5b70820a1d (patch) | |
tree | e597f0c1880f4a49e227dcc790034994ac2b6c48 | |
parent | a2249cba2f1d7d06633de09c71353ae6b1567206 (diff) | |
download | op-kernel-dev-07004b12a1199f82c016eb976f493e5b70820a1d.zip op-kernel-dev-07004b12a1199f82c016eb976f493e5b70820a1d.tar.gz |
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>
-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 6e383e1..616c53a 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) res = (void *)mem; if (mem != NULL) { - memset(mem, 0, n); mem += sizeof(struct resource) * nr_ioapics; for (i = 0; i < nr_ioapics; i++) { |