x86/numa: don't check alloc_boot_pages return
authorJulien Grall <julien.grall@arm.com>
Wed, 16 Aug 2017 10:26:37 +0000 (12:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 16 Aug 2017 10:26:37 +0000 (12:26 +0200)
alloc_boot_pages will panic if it is not possible to allocate. So the
check in the caller is pointless.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/numa.c

index d45196fafcc10e18b805a60b593d6c3f06dabe45..ffeba6e1801b8cbcf2b7594974dd7e8e1dd1b264 100644 (file)
@@ -101,14 +101,6 @@ static int __init allocate_cachealigned_memnodemap(void)
     unsigned long size = PFN_UP(memnodemapsize * sizeof(*memnodemap));
     unsigned long mfn = alloc_boot_pages(size, 1);
 
-    if ( !mfn )
-    {
-        printk(KERN_ERR
-               "NUMA: Unable to allocate Memory to Node hash map\n");
-        memnodemapsize = 0;
-        return -1;
-    }
-
     memnodemap = mfn_to_virt(mfn);
     mfn <<= PAGE_SHIFT;
     size <<= PAGE_SHIFT;