diff options
author | 2018-07-03 05:45:21 +0000 | |
---|---|---|
committer | 2018-07-03 05:45:21 +0000 | |
commit | 570d66b8369e771dab8a4773553ccb63f9ef36e7 (patch) | |
tree | 689bcd72edca7bfa1533a552342b5c7c6786fe21 /sys | |
parent | unbreak newaliases. (diff) | |
download | wireguard-openbsd-570d66b8369e771dab8a4773553ccb63f9ef36e7.tar.xz wireguard-openbsd-570d66b8369e771dab8a4773553ccb63f9ef36e7.zip |
Remove dead code present since r1.1. Fix CID 1470238.
ok guenther@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/trap.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/arch/amd64/amd64/trap.c b/sys/arch/amd64/amd64/trap.c index 48b584a277d..e514395e1f5 100644 --- a/sys/arch/amd64/amd64/trap.c +++ b/sys/arch/amd64/amd64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.71 2018/06/24 00:49:25 guenther Exp $ */ +/* $OpenBSD: trap.c,v 1.72 2018/07/03 05:45:21 mpi Exp $ */ /* $NetBSD: trap.c,v 1.2 2003/05/04 23:51:56 fvdl Exp $ */ /*- @@ -179,15 +179,8 @@ pageflttrap(struct trapframe *frame, int usermode) * The last can occur during an exec() copyin where the * argument space is lazy-allocated. */ - if (va >= VM_MIN_KERNEL_ADDRESS) { + if (va >= VM_MIN_KERNEL_ADDRESS) map = kernel_map; -#ifdef DIAGNOSTIC - if (va == 0) { - printf("bad kernel access at %llx\n", cr2); - return 0; - } -#endif - } } if (frame->tf_err & PGEX_W) |