浏览代码

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>
Akinobu Mita 17 年之前
父节点
当前提交
07004b12a1
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      arch/x86/kernel/io_apic_64.c

+ 0 - 1
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++) {