Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

s390/traps: simplify data exception handler

Simplify conditions and remove unnecessary variable in data exception
handler.

Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>

authored by

Vasily Gorbik and committed by
Heiko Carstens
b4e3133b 39c7dcb1

+2 -8
+2 -8
arch/s390/kernel/traps.c
··· 229 229 230 230 void data_exception(struct pt_regs *regs) 231 231 { 232 - int signal = 0; 233 - 234 232 save_fpu_regs(); 235 233 if (current->thread.fpu.fpc & FPC_DXC_MASK) 236 - signal = SIGFPE; 237 - else 238 - signal = SIGILL; 239 - if (signal == SIGFPE) 240 234 do_fp_trap(regs, current->thread.fpu.fpc); 241 - else if (signal) 242 - do_trap(regs, signal, ILL_ILLOPN, "data exception"); 235 + else 236 + do_trap(regs, SIGILL, ILL_ILLOPN, "data exception"); 243 237 } 244 238 245 239 void space_switch_exception(struct pt_regs *regs)