diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2016-06-29 22:02:04 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2016-06-30 12:55:04 -0400 |
commit | 6c5269f33e96722f3e20dc694fba636cc1d4b3eb (patch) | |
tree | 2e68689549d8d272e3abd561bd9ef21d40b98edd /arch/arm64/mm | |
parent | 9fdc14c55cd6579d619ccd9d40982e0805e62b6d (diff) |
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 <wangkefeng.wang@huawei.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r-- | arch/arm64/mm/mmu.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) | |||
77 | void *ptr; | 77 | void *ptr; |
78 | 78 | ||
79 | phys = memblock_alloc(PAGE_SIZE, PAGE_SIZE); | 79 | phys = memblock_alloc(PAGE_SIZE, PAGE_SIZE); |
80 | BUG_ON(!phys); | ||
81 | 80 | ||
82 | /* | 81 | /* |
83 | * The FIX_{PGD,PUD,PMD} slots may be in active use, but the FIX_PTE | 82 | * The FIX_{PGD,PUD,PMD} slots may be in active use, but the FIX_PTE |