Skip to content

Commit

Permalink
arm64: mm: remove unnecessary BUG_ON
Browse files Browse the repository at this point in the history
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 <wangkefeng.wang@huawei.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
  • Loading branch information
Kefeng Wang authored and Catalin Marinas committed Jun 30, 2016
1 parent 9fdc14c commit 6c5269f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/arm64/mm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c5269f

Please sign in to comment.