[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/srat: don't check alloc_boot_pages return
commit 7a37e0ea7f0ccab389cecaa6baff0bb411236281 Author: Julien Grall <julien.grall@xxxxxxx> AuthorDate: Wed Aug 16 12:27:02 2017 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Wed Aug 16 12:27:02 2017 +0200 x86/srat: don't check alloc_boot_pages return 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@xxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/arch/x86/srat.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/xen/arch/x86/srat.c b/xen/arch/x86/srat.c index cd1283e..95660a9 100644 --- a/xen/arch/x86/srat.c +++ b/xen/arch/x86/srat.c @@ -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); } -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |