From: Heiko Carstens Date: Wed, 26 Feb 2025 10:03:06 +0000 (+0100) Subject: s390/traps: Get rid of superfluous cpu_has_vx() check X-Git-Tag: v6.15-rc1~113^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d5c2b495c10072df497252d73189a610a0721bd;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Heiko Carstens Signed-off-by: Vasily Gorbik --- diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c index cabc38a38ae3b..945522266037d 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;