From ce0bfb6fce79bdfd67dd4631ab069317487dc3df Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Thu, 9 Mar 2017 20:31:42 +0000 Subject: There are no compat emulations left so we never do errno mapping: eliminate the last use of e_errno. ok tom@ mpi@ kettenis@ visa@ --- sys/arch/i386/i386/trap.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index a573f77a57d..f8e63d29385 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.127 2017/03/03 20:49:47 bluhm Exp $ */ +/* $OpenBSD: trap.c,v 1.128 2017/03/09 20:31:41 guenther Exp $ */ /* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */ /*- @@ -625,10 +625,7 @@ syscall(struct trapframe *frame) break; default: bad: - if (p->p_p->ps_emul->e_errno && error >= 0 && error <= ELAST) - frame->tf_eax = p->p_p->ps_emul->e_errno[error]; - else - frame->tf_eax = error; + frame->tf_eax = error; frame->tf_eflags |= PSL_C; /* carry bit */ break; } -- cgit v1.2.3