Skip to content

Commit

Permalink
s390: 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: Martin Schwidefsky <schwidefsky@de.ibm.com>
CC: Heiko Carstens <heiko.carstens@de.ibm.com>
CC: linux390@de.ibm.com
CC: linux-s390@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
David Daney authored and Linus Torvalds committed Dec 5, 2009
1 parent 4ef5651 commit 5506e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/include/asm/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

#define BUG() do { \
__EMIT_BUG(0); \
for (;;); \
unreachable(); \
} while (0)

#define WARN_ON(x) ({ \
Expand Down

0 comments on commit 5506e68

Please sign in to comment.