Skip to content

Commit

Permalink
parisc: Convert BUG() to use unreachable()
Browse files Browse the repository at this point in the history
Use the new unreachable() macro instead of for(;;);

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
  • Loading branch information
David Daney authored and Kyle McMartin committed Dec 16, 2009
1 parent 6ad6c42 commit 0592079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/parisc/include/asm/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
"\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

Expand Down

0 comments on commit 0592079

Please sign in to comment.