From: Christophe Leroy Date: Mon, 15 Oct 2018 07:38:10 +0000 (+0000) Subject: powerpc/traps: remove redundant in_interrupt panic in die() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bd03fd84a53ac9ddaeb0a0fc4c4c9836e12f3ab9;p=openwrt%2Fstaging%2Fblogic.git 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: Christophe Leroy Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index c8559b2c2c81..f1629a8acc4b 100644 --- a/arch/powerpc/kernel/traps.c +++ b/arch/powerpc/kernel/traps.c @@ -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);