Explorar o código

BUG to BUG_ON changes

Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Stoyan Gaydarov %!s(int64=17) %!d(string=hai) anos
pai
achega
59b9776077
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      arch/cris/mm/init.c

+ 1 - 2
arch/cris/mm/init.c

@@ -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...