Explorar o código

Blackfin: Convert BUG() to use unreachable()

Use the new unreachable() macro instead of for(;;);

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
David Daney %!s(int64=15) %!d(string=hai) anos
pai
achega
64a2b16802
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/blackfin/include/asm/bug.h

+ 1 - 1
arch/blackfin/include/asm/bug.h

@@ -47,7 +47,7 @@
 #define BUG()								\
 #define BUG()								\
 	do {								\
 	do {								\
 		_BUG_OR_WARN(0);					\
 		_BUG_OR_WARN(0);					\
-		for (;;);						\
+		unreachable();						\
 	} while (0)
 	} while (0)
 
 
 #define WARN_ON(condition)							\
 #define WARN_ON(condition)							\