diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2018-10-15 09:38:10 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-10-18 15:56:17 +0200 |
commit | bd03fd84a53ac9ddaeb0a0fc4c4c9836e12f3ab9 (patch) | |
tree | b1a15ea0c7a312da328da941bd1110d1d339acd7 /arch/powerpc/kernel/traps.c | |
parent | powerpc/prom_init: Generate "phandle" instead of "linux, phandle" (diff) | |
download | linux-bd03fd84a53ac9ddaeb0a0fc4c4c9836e12f3ab9.tar.xz linux-bd03fd84a53ac9ddaeb0a0fc4c4c9836e12f3ab9.zip |
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 <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to '')
-rw-r--r-- | arch/powerpc/kernel/traps.c | 2 |
1 files changed, 0 insertions, 2 deletions
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); |