Skip to content

Commit

Permalink
MIPS: signal: Remove unreachable code from force_fcr31_sig().
Browse files Browse the repository at this point in the history
Based on discussion with Linus remove the impossible to reach code
rather than replacing it with a BUG().

Signed-off-by: Ralf Baechle <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
  • Loading branch information
ralfbaechle committed Aug 29, 2017
1 parent 7aacf86 commit b123718
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/mips/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,8 +734,7 @@ void force_fcr31_sig(unsigned long fcr31, void __user *fault_addr,
si.si_code = FPE_FLTUND;
else if (fcr31 & FPU_CSR_INE_X)
si.si_code = FPE_FLTRES;
else
si.si_code = __SI_FAULT;

force_sig_info(SIGFPE, &si, tsk);
}

Expand Down

0 comments on commit b123718

Please sign in to comment.