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

Commit 05920797 authored by David Daney's avatar David Daney Committed by Kyle McMartin
Browse files

parisc: Convert BUG() to use unreachable()



Use the new unreachable() macro instead of for(;;);

Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
parent 6ad6c424
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -32,14 +32,14 @@
			     "\t.popsection"				\
			     : : "i" (__FILE__), "i" (__LINE__),	\
			     "i" (0), "i" (sizeof(struct bug_entry)) ); \
		for(;;) ;						\
		unreachable();						\
	} while(0)

#else
#define BUG()								\
	do {								\
		asm volatile(PARISC_BUG_BREAK_ASM : : );		\
		for(;;) ;						\
		unreachable();						\
	} while(0)
#endif