Messages in this thread Patch in this message |  | | Date | Sat, 05 Apr 2008 22:39:06 +0900 | From | Akinobu Mita <> | Subject | [patch 3/9] 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> --- arch/x86/kernel/io_apic_64.c | 1 - 1 file changed, 1 deletion(-)
Index: 2.6-git/arch/x86/kernel/io_apic_64.c =================================================================== --- 2.6-git.orig/arch/x86/kernel/io_apic_64.c +++ 2.6-git/arch/x86/kernel/io_apic_64.c @@ -2304,7 +2304,6 @@ static struct resource * __init ioapic_s res = (void *)mem; if (mem != NULL) { - memset(mem, 0, n); mem += sizeof(struct resource) * nr_ioapics; for (i = 0; i < nr_ioapics; i++) { --
|  |