parisc: BUG_ON() cleanup
- convert a few "if (xx) BUG();" to BUG_ON(xx) - remove a few printk()s, as we get a backtrace with BUG_ON() anyway Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
This commit is contained in:
committed by
Kyle McMartin
parent
041b62374c
commit
8980a7baf9
@@ -304,10 +304,8 @@ static void __init setup_bootmem(void)
|
||||
*/
|
||||
max_low_pfn = max_pfn;
|
||||
|
||||
if ((bootmap_pfn - bootmap_start_pfn) != bootmap_pages) {
|
||||
printk(KERN_WARNING "WARNING! bootmap sizing is messed up!\n");
|
||||
BUG();
|
||||
}
|
||||
/* bootmap sizing messed up? */
|
||||
BUG_ON((bootmap_pfn - bootmap_start_pfn) != bootmap_pages);
|
||||
|
||||
/* reserve PAGE0 pdc memory, kernel text/data/bss & bootmap */
|
||||
|
||||
|
Reference in New Issue
Block a user