Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ef5651e authored by David Daney's avatar David Daney Committed by Linus Torvalds
Browse files

MIPS: Convert BUG() to use unreachable()



Use the new unreachable() macro instead of while(1);

Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Acked-by: default avatarRalf Baechle <ralf@linux-mips.org>
CC: linux-mips@linux-mips.org
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a5fc5eba
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -11,9 +11,7 @@
static inline void __noreturn BUG(void)
{
	__asm__ __volatile__("break %0" : : "i" (BRK_BUG));
	/* Fool GCC into thinking the function doesn't return. */
	while (1)
		;
	unreachable();
}

#define HAVE_ARCH_BUG