From: Kefeng Wang Date: Thu, 30 Jun 2016 02:02:04 +0000 (+0800) Subject: arm64: mm: remove unnecessary BUG_ON X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6c5269f33e96722f3e20dc694fba636cc1d4b3eb;p=linux-beck.git arm64: mm: remove unnecessary BUG_ON The memblock_alloc() and memblock_alloc_base() will panic on their own if no free memory, remove pointless BUG_ON. Signed-off-by: Kefeng Wang Acked-by: Mark Rutland Signed-off-by: Catalin Marinas --- diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c index c356f7b84d4d..0c95d6ec873d 100644 --- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c @@ -77,7 +77,6 @@ static phys_addr_t __init early_pgtable_alloc(void) void *ptr; phys = memblock_alloc(PAGE_SIZE, PAGE_SIZE); - BUG_ON(!phys); /* * The FIX_{PGD,PUD,PMD} slots may be in active use, but the FIX_PTE