BUG to BUG_ON changes
authorStoyan Gaydarov <stoyboyker@gmail.com>
Tue, 10 Mar 2009 05:10:40 +0000 (06:10 +0100)
committerJesper Nilsson <jesper.nilsson@axis.com>
Thu, 2 Apr 2009 11:56:04 +0000 (13:56 +0200)
Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/mm/init.c

index 2fdd212..514f46a 100644 (file)
@@ -25,8 +25,7 @@ mem_init(void)
        int codesize, reservedpages, datasize, initsize;
        unsigned long tmp;
 
-       if(!mem_map)
-               BUG();
+       BUG_ON(!mem_map);
 
        /* max/min_low_pfn was set by setup.c
         * now we just copy it to some other necessary places...