s390/traps: Get rid of superfluous cpu_has_vx() check
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 26 Feb 2025 10:03:06 +0000 (11:03 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 4 Mar 2025 16:34:03 +0000 (17:34 +0100)
commit8d5c2b495c10072df497252d73189a610a0721bd
tree3949eafa25a5502c0c72a2cd3d0454b73a0d8666
parent5864614daf4a3e5dfa434e0f2f84e6d8cfe4126d
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>
arch/s390/kernel/traps.c