summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2008-04-05 22:39:06 +0900
committerIngo Molnar <mingo@elte.hu>2008-04-17 17:41:36 +0200
commit07004b12a1199f82c016eb976f493e5b70820a1d (patch)
treee597f0c1880f4a49e227dcc790034994ac2b6c48 /arch
parenta2249cba2f1d7d06633de09c71353ae6b1567206 (diff)
downloadlinux-stable-07004b12a1199f82c016eb976f493e5b70820a1d.tar.gz
linux-stable-07004b12a1199f82c016eb976f493e5b70820a1d.tar.bz2
linux-stable-07004b12a1199f82c016eb976f493e5b70820a1d.zip
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')
-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)
res = (void *)mem;
if (mem != NULL) {
- memset(mem, 0, n);
mem += sizeof(struct resource) * nr_ioapics;
for (i = 0; i < nr_ioapics; i++) {