From: Akinobu Mita Date: Sat, 5 Apr 2008 13:39:06 +0000 (+0900) Subject: x86: remove unnecessary memset() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07004b12a1199f82c016eb976f493e5b70820a1d;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c index 6e383e126db..616c53afb71 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++) {