]> xenbits.xensource.com Git - xen.git/commit
x86/mm: don't check alloc_boot_pages return
authorJulien Grall <julien.grall@arm.com>
Wed, 16 Aug 2017 10:27:22 +0000 (12:27 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 16 Aug 2017 10:27:22 +0000 (12:27 +0200)
commit79d5dd06a677fcc8c5a585d95b32c35bd38bc34e
treeb384dfd4b9ae00f46f5c5127794f1e10de5a82c1
parent7a37e0ea7f0ccab389cecaa6baff0bb411236281
x86/mm: don't check alloc_boot_pages return

The only way alloc_boot_pages will return 0 is during the error case.
Although, Xen will panic in the error path. So the check in the caller
is pointless.

Looking at the loop, my understanding is it will try to allocate in
smaller chunk if a bigger chunk fail. Given that alloc_boot_pages can
never check, the loop seems unecessary.

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