From 0d4b99cfa806f6ec46fc3d7edbb0e44825438795 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 6 Nov 2008 19:13:32 +0000 Subject: delete checks for impossible conditions --- sys/arch/i386/i386/pmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c index 45a159221ff..53e3015b988 100644 --- a/sys/arch/i386/i386/pmap.c +++ b/sys/arch/i386/i386/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.124 2008/10/24 06:34:55 deraadt Exp $ */ +/* $OpenBSD: pmap.c,v 1.125 2008/11/06 19:13:31 deraadt Exp $ */ /* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */ /* @@ -578,7 +578,7 @@ pmap_exec_account(struct pmap *pm, vaddr_t va, if (pm == pmap_kernel()) return; - if (curproc == NULL || curproc->p_vmspace == NULL || + if (curproc->p_vmspace == NULL || pm != vm_map_pmap(&curproc->p_vmspace->vm_map)) return; -- cgit v1.2.3