summaryrefslogtreecommitdiffstats
path: root/arch/avr32/include
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2009-12-05 02:44:54 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-05 18:10:12 +0100
commit27d16d08717faeaa8afd1b736a096dbaab90f08e (patch)
tree8ad39d27118f5b0ec68d120a4f593c26b68a339c /arch/avr32/include
parents390: Convert BUG() to use unreachable() (diff)
downloadlinux-27d16d08717faeaa8afd1b736a096dbaab90f08e.tar.xz
linux-27d16d08717faeaa8afd1b736a096dbaab90f08e.zip
avr32: Convert BUG() to use unreachable()
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>
Diffstat (limited to 'arch/avr32/include')
-rw-r--r--arch/avr32/include/asm/bug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/include/asm/bug.h b/arch/avr32/include/asm/bug.h
index 331d45bab18f..2aa373cc61b5 100644
--- a/arch/avr32/include/asm/bug.h
+++ b/arch/avr32/include/asm/bug.h
@@ -52,7 +52,7 @@
#define BUG() \
do { \
_BUG_OR_WARN(0); \
- for (;;); \
+ unreachable(); \
} while (0)
#define WARN_ON(condition) \