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 8cfc553..75e46c5 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