diff --git a/mm/bootmem.c b/mm/bootmem.c index ecc45958ac0c5d3527b84f7eeddad3e51627f55f..4730931b45a9c2b40be3d78a51a1b68c33e93097 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c @@ -581,18 +581,6 @@ static void * __init alloc_arch_preferred_bootmem(bootmem_data_t *bdata, { if (WARN_ON_ONCE(slab_is_available())) return kzalloc(size, GFP_NOWAIT); - -#ifdef CONFIG_HAVE_ARCH_BOOTMEM - { - bootmem_data_t *p_bdata; - - p_bdata = bootmem_arch_preferred_node(bdata, size, align, - goal, limit); - if (p_bdata) - return alloc_bootmem_bdata(p_bdata, size, align, - goal, limit); - } -#endif return NULL; }