浏览代码

MIPS: signal: Remove unreachable code from force_fcr31_sig().

Based on discussion with Linus remove the impossible to reach code
rather than replacing it with a BUG().

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Link: http://lkml.kernel.org/r/20170718140651.15973-4-ebiederm@xmission.com
Ralf Baechle 8 年之前
父节点
当前提交
b123718b10
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      arch/mips/kernel/traps.c

+ 1 - 2
arch/mips/kernel/traps.c

@@ -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);
 }