Commit bd03fd84 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman
Browse files

powerpc/traps: remove redundant in_interrupt panic in die()



do_exit() already includes a test to panic() is in_interrupt()

This patch removes powerpc one which is redundant.

Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent f1f208e5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -247,8 +247,6 @@ static void oops_end(unsigned long flags, struct pt_regs *regs,
		mdelay(MSEC_PER_SEC);
	}

	if (in_interrupt())
		panic("Fatal exception in interrupt");
	if (panic_on_oops)
		panic("Fatal exception");
	do_exit(signr);