Blackfin: Convert BUG() to use unreachable()
authorDavid Daney <ddaney@caviumnetworks.com>
Thu, 10 Dec 2009 17:28:21 +0000 (09:28 -0800)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Dec 2009 13:38:35 +0000 (08:38 -0500)
Use the new unreachable() macro instead of for(;;);

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/bug.h

index 6f4548a1355539191e077770f090b548c3eb17ee..75f6dc336d46d4b13e04a42bf8facb44ea79a49f 100644 (file)
@@ -47,7 +47,7 @@
 #define BUG()                                                          \
        do {                                                            \
                _BUG_OR_WARN(0);                                        \
-               for (;;);                                               \
+               unreachable();                                          \
        } while (0)
 
 #define WARN_ON(condition)                                                     \