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>
This commit is contained in:

committed by
Linus Torvalds

parent
5506e68975
commit
27d16d0871
@@ -52,7 +52,7 @@
|
|||||||
#define BUG() \
|
#define BUG() \
|
||||||
do { \
|
do { \
|
||||||
_BUG_OR_WARN(0); \
|
_BUG_OR_WARN(0); \
|
||||||
for (;;); \
|
unreachable(); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define WARN_ON(condition) \
|
#define WARN_ON(condition) \
|
||||||
|
Reference in New Issue
Block a user