Module Name:    src
Committed By:   matt
Date:           Mon Aug 10 16:49:30 UTC 2009

Modified Files:
        src/sys/uvm: uvm_map.c

Log Message:
Compare vaddr_t against 0, not NULL.


To generate a diff of this commit:
cvs rdiff -u -r1.276 -r1.277 src/sys/uvm/uvm_map.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/uvm/uvm_map.c
diff -u src/sys/uvm/uvm_map.c:1.276 src/sys/uvm/uvm_map.c:1.277
--- src/sys/uvm/uvm_map.c:1.276	Sun Aug  9 22:13:07 2009
+++ src/sys/uvm/uvm_map.c	Mon Aug 10 16:49:30 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_map.c,v 1.276 2009/08/09 22:13:07 matt Exp $	*/
+/*	$NetBSD: uvm_map.c,v 1.277 2009/08/10 16:49:30 matt Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.276 2009/08/09 22:13:07 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.277 2009/08/10 16:49:30 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_uvmhist.h"
@@ -4691,7 +4691,7 @@
 
 #ifdef PMAP_MAP_POOLPAGE
 	va = PMAP_MAP_POOLPAGE(VM_PAGE_TO_PHYS(pg));
-	KASSERT(va != NULL);
+	KASSERT(va != 0);
 #else
 	error = uvm_map_prepare(map, 0, PAGE_SIZE, NULL, UVM_UNKNOWN_OFFSET,
 	    0, mapflags, &args);

Reply via email to