mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 11:41:37 -04:00
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>
This commit is contained in:
committed by
Vasily Gorbik
parent
5864614daf
commit
8d5c2b495c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user