From: David Daney Date: Sat, 5 Dec 2009 01:44:54 +0000 (-0800) Subject: avr32: Convert BUG() to use unreachable() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=27d16d08717faeaa8afd1b736a096dbaab90f08e;p=openwrt%2Fstaging%2Fblogic.git avr32: Convert BUG() to use unreachable() Use the new unreachable() macro instead of for(;;); Signed-off-by: David Daney Acked-by: Haavard Skinnemoen Signed-off-by: Linus Torvalds --- 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) \