Skip to content

Commit 8d5c2b4

Browse files
hcahcaVasily Gorbik
authored andcommitted
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 <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 5864614 commit 8d5c2b4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/s390/kernel/traps.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,6 @@ static void vector_exception(struct pt_regs *regs)
198198
{
199199
int si_code, vic;
200200

201-
if (!cpu_has_vx()) {
202-
do_trap(regs, SIGILL, ILL_ILLOPN, "illegal operation");
203-
return;
204-
}
205-
206201
/* get vector interrupt code from fpc */
207202
save_user_fpu_regs();
208203
vic = (current->thread.ufpu.fpc & 0xf00) >> 8;

0 commit comments

Comments
 (0)