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

s390/traps: Get rid of superfluous cpu_has_vx() check

If the vector facility is installed cpu_has_vx() is always true, if it is
not installed the result is always false, and no vector exception can
happen. Therefore remove the superfluous check.

Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>

authored by

Heiko Carstens and committed by
Vasily Gorbik
8d5c2b49 5864614d

-5
-5
arch/s390/kernel/traps.c
··· 198 198 { 199 199 int si_code, vic; 200 200 201 - if (!cpu_has_vx()) { 202 - do_trap(regs, SIGILL, ILL_ILLOPN, "illegal operation"); 203 - return; 204 - } 205 - 206 201 /* get vector interrupt code from fpc */ 207 202 save_user_fpu_regs(); 208 203 vic = (current->thread.ufpu.fpc & 0xf00) >> 8;