Commit fe8b868e authored by Gary Hade's avatar Gary Hade Committed by Ingo Molnar
Browse files

x86: remove debug code from arch_add_memory()



Impact: remove incorrect WARN_ON(1)

Gets rid of dmesg spam created during physical memory hot-add which
will very likely confuse users.  The change removes what appears to
be debugging code which I assume was unintentionally included in:

  x86: arch/x86/mm/init_64.c printk fixes
  commit 10f22dde

Signed-off-by: default avatarGary Hade <garyhade@us.ibm.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 1d6cf1fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -858,7 +858,7 @@ int arch_add_memory(int nid, u64 start, u64 size)
		max_pfn_mapped = last_mapped_pfn;

	ret = __add_pages(zone, start_pfn, nr_pages);
	WARN_ON(1);
	WARN_ON_ONCE(ret);

	return ret;
}