parisc: Convert BUG() to use unreachable()
authorDavid Daney <ddaney@caviumnetworks.com>
Thu, 10 Dec 2009 17:28:18 +0000 (17:28 +0000)
committerKyle McMartin <kyle@mcmartin.ca>
Wed, 16 Dec 2009 03:48:55 +0000 (03:48 +0000)
Use the new unreachable() macro instead of for(;;);

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
arch/parisc/include/asm/bug.h

index 8cfc553fc837267e2342cbf66f4ef27efacde143..75e46c557a16901d03f93cb83d2b3838e7793172 100644 (file)
                             "\t.popsection"                            \
                             : : "i" (__FILE__), "i" (__LINE__),        \
                             "i" (0), "i" (sizeof(struct bug_entry)) ); \
-               for(;;) ;                                               \
+               unreachable();                                          \
        } while(0)
 
 #else
 #define BUG()                                                          \
        do {                                                            \
                asm volatile(PARISC_BUG_BREAK_ASM : : );                \
-               for(;;) ;                                               \
+               unreachable();                                          \
        } while(0)
 #endif