summaryrefslogtreecommitdiff
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1996-11-23 21:47:15 +0000
committerkstailey <kstailey@cvs.openbsd.org>1996-11-23 21:47:15 +0000
commitf87da8b70c32105ecf5f0e627dfd7f39b1e90008 (patch)
tree714834ca913a394e7d241d31eccceae7f04b88e7 /sys/vm/vm_fault.c
parent728527f840ec82a566f72f3cec384e341ac59a4c (diff)
curproc is never NULL when this code is executed
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 915004c1fec..e591f555d16 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_fault.c,v 1.4 1996/08/02 00:05:59 niklas Exp $ */
+/* $OpenBSD: vm_fault.c,v 1.5 1996/11/23 21:47:14 kstailey Exp $ */
/* $NetBSD: vm_fault.c,v 1.18 1996/05/20 17:40:02 mrg Exp $ */
/*
@@ -331,8 +331,7 @@ vm_fault(map, vaddr, fault_type, change_wiring)
*/
UNLOCK_MAP;
cnt.v_pageins++;
- if (curproc)
- curproc->p_addr->u_stats.p_ru.ru_majflt++;
+ curproc->p_addr->u_stats.p_ru.ru_majflt++;
rv = vm_pager_get(object->pager, m, TRUE);
/*