Module Name: src
Committed By: reinoud
Date: Mon Jan 9 14:58:15 UTC 2012
Modified Files:
src/sys/arch/usermode/usermode: pmap.c
Log Message:
As ppn is a uintptr_t, it can never be negative so the check is invalid.
To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/arch/usermode/usermode/pmap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/usermode/usermode/pmap.c
diff -u src/sys/arch/usermode/usermode/pmap.c:1.98 src/sys/arch/usermode/usermode/pmap.c:1.99
--- src/sys/arch/usermode/usermode/pmap.c:1.98 Sat Jan 7 19:44:13 2012
+++ src/sys/arch/usermode/usermode/pmap.c Mon Jan 9 14:58:15 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.98 2012/01/07 19:44:13 reinoud Exp $ */
+/* $NetBSD: pmap.c,v 1.99 2012/01/09 14:58:15 reinoud Exp $ */
/*-
* Copyright (c) 2011 Reinoud Zandijk <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.98 2012/01/07 19:44:13 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.99 2012/01/09 14:58:15 reinoud Exp $");
#include "opt_memsize.h"
#include "opt_kmempages.h"
@@ -581,7 +581,6 @@ pv_get(pmap_t pmap, uintptr_t ppn, uintp
/* extra sanity */
assert(ppn < phys_npages);
- assert(ppn >= 0);
pv = pv_alloc();
if (pv == NULL)