summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2025-02-26 11:03:06 +0100
committerVasily Gorbik <gor@linux.ibm.com>2025-03-04 17:34:03 +0100
commit8d5c2b495c10072df497252d73189a610a0721bd (patch)
tree3949eafa25a5502c0c72a2cd3d0454b73a0d8666
parent5864614daf4a3e5dfa434e0f2f84e6d8cfe4126d (diff)
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>
-rw-r--r--arch/s390/kernel/traps.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c
index cabc38a38ae3..945522266037 100644
--- a/arch/s390/kernel/traps.c
+++ b/arch/s390/kernel/traps.c
@@ -198,11 +198,6 @@ static void vector_exception(struct pt_regs *regs)
{
int si_code, vic;
- if (!cpu_has_vx()) {
- do_trap(regs, SIGILL, ILL_ILLOPN, "illegal operation");
- return;
- }
-
/* get vector interrupt code from fpc */
save_user_fpu_regs();
vic = (current->thread.ufpu.fpc & 0xf00) >> 8;