x86/srat: don't check alloc_boot_pages return
authorJulien Grall <julien.grall@arm.com>
Wed, 16 Aug 2017 10:27:02 +0000 (12:27 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 16 Aug 2017 10:27:02 +0000 (12:27 +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/srat.c

index cd1283e58cf2a9e0f339894ac40b686c97e85900..95660a9bbc08fa4f73f8ca81637add5232d04fd4 100644 (file)
@@ -194,11 +194,6 @@ void __init acpi_numa_slit_init(struct acpi_table_slit *slit)
                return;
        }
        mfn = alloc_boot_pages(PFN_UP(slit->header.length), 1);
-       if (!mfn) {
-               printk(KERN_ERR "ACPI: Unable to allocate memory for "
-                      "saving ACPI SLIT numa information.\n");
-               return;
-       }
        acpi_slit = mfn_to_virt(mfn);
        memcpy(acpi_slit, slit, slit->header.length);
 }