Skip to content

Commit

Permalink
avr32: 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>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
David Daney authored and Linus Torvalds committed Dec 5, 2009
1 parent 5506e68 commit 27d16d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/avr32/include/asm/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#define BUG() \
do { \
_BUG_OR_WARN(0); \
for (;;); \
unreachable(); \
} while (0)

#define WARN_ON(condition) \
Expand Down

0 comments on commit 27d16d0

Please sign in to comment.