X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Ffrv%2Fkernel%2Fsetup.c;h=1a5eb6c301c9b0e833d389953d76650eb70390fe;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=5908deae9607b7a5c991c3a6e4176d93f7248095;hpb=76828883507a47dae78837ab5dec5a5b4513c667;p=linux-2.6.git diff --git a/arch/frv/kernel/setup.c b/arch/frv/kernel/setup.c index 5908deae9..1a5eb6c30 100644 --- a/arch/frv/kernel/setup.c +++ b/arch/frv/kernel/setup.c @@ -10,8 +10,7 @@ * 2 of the License, or (at your option) any later version. */ -#include -#include +#include #include #include #include @@ -32,7 +31,6 @@ #include #include -#include #include #include #include @@ -44,7 +42,6 @@ #include #include #include -#include #include #ifdef CONFIG_BLK_DEV_INITRD @@ -814,7 +811,7 @@ void __init setup_arch(char **cmdline_p) * - by now the stack is part of the init task */ printk("Memory %08lx-%08lx\n", memory_start, memory_end); - if (memory_start == memory_end) BUG(); + BUG_ON(memory_start == memory_end); init_mm.start_code = (unsigned long) &_stext; init_mm.end_code = (unsigned long) &_etext; @@ -950,7 +947,7 @@ static void __init setup_linux_memory(void) if (LOADER_TYPE && INITRD_START) { if (INITRD_START + INITRD_SIZE <= (low_top_pfn << PAGE_SHIFT)) { reserve_bootmem(INITRD_START, INITRD_SIZE); - initrd_start = INITRD_START ? INITRD_START + PAGE_OFFSET : 0; + initrd_start = INITRD_START + PAGE_OFFSET; initrd_end = initrd_start + INITRD_SIZE; } else {