Skip to contentSkip to conversation

arm64: mm: remove unnecessary BUG_ON

PATCH New Kefeng Wang 3 participants 3 messages Jun 30, 2016 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm64/mm/mmu.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/mm/mmu.c +0 -1
index 0f85a46..d120abc 100644
@@ -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
Signature · 1 line
2.6.0.GIT
reviewer
#1 lore raw

PATCH 1/1 arm64: mm: remove unnecessary BUG_ON

Quoted 4 lines · Kefeng Wang

The memblock_alloc() and memblock_alloc_base() will panic on their own if no free memory, remove pointless BUG_ON.

For some reason I thought we'd already removed this. FWIW:

I believe it's up to Catalin to pick this up.

Mark.

Quoted 19 lines
---
 arch/arm64/mm/mmu.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/mm/mmu.c +0 -1
index 0f85a46..d120abc 100644
@@ -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
Signature · 1 line
2.6.0.GIT