From: Eric W. Biederman Date: Wed, 20 Oct 2021 17:43:50 +0000 (-0500) Subject: signal/sparc32: Remove unreachable do_exit in do_sparc_fault X-Git-Tag: v5.16-rc1~30^2~20 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=97cae848270731e4224681368f2061c94a9fc588;p=linux-2.6-block.git signal/sparc32: Remove unreachable do_exit in do_sparc_fault The call to do_exit in do_sparc_fault immediately follows a call to unhandled_fault. The function unhandled_fault never returns. This means the call to do_exit can never be reached. Cc: David Miller Cc: sparclinux@vger.kernel.org Fixes: 2.3.41 Link: https://lkml.kernel.org/r/20211020174406.17889-4-ebiederm@xmission.com Signed-off-by: Eric W. Biederman --- diff --git a/arch/sparc/mm/fault_32.c b/arch/sparc/mm/fault_32.c index fa858626b85b..90dc4ae315c8 100644 --- a/arch/sparc/mm/fault_32.c +++ b/arch/sparc/mm/fault_32.c @@ -248,7 +248,6 @@ no_context: } unhandled_fault(address, tsk, regs); - do_exit(SIGKILL); /* * We ran out of memory, or some other thing happened to us that made