فهرست منبع

BUG to BUG_ON changes

Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Stoyan Gaydarov 16 سال پیش
والد
کامیت
59b9776077
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  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;
 	int codesize, reservedpages, datasize, initsize;
 	unsigned long tmp;
 	unsigned long tmp;
 
 
-	if(!mem_map)
-		BUG();
+	BUG_ON(!mem_map);
 
 
 	/* max/min_low_pfn was set by setup.c
 	/* max/min_low_pfn was set by setup.c
 	 * now we just copy it to some other necessary places...
 	 * now we just copy it to some other necessary places...