Blackfin: Convert BUG() to use unreachable()
Use the new unreachable() macro instead of for(;;); Signed-off-by: David Daney <ddaney@caviumnetworks.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
5540a44e3e
commit
64a2b16802
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,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) \
|
||||||
|
|
Loading…
Add table
Reference in a new issue