svn commit: r246795 - user/attilio/vmc-playground/sys/vm

Attilio Rao attilio at FreeBSD.org
Thu Feb 14 15:24:14 UTC 2013


Author: attilio
Date: Thu Feb 14 15:24:13 2013
New Revision: 246795
URL: http://svnweb.freebsd.org/changeset/base/246795

Log:
  Fix style.

Modified:
  user/attilio/vmc-playground/sys/vm/vm_radix.c

Modified: user/attilio/vmc-playground/sys/vm/vm_radix.c
==============================================================================
--- user/attilio/vmc-playground/sys/vm/vm_radix.c	Thu Feb 14 15:23:00 2013	(r246794)
+++ user/attilio/vmc-playground/sys/vm/vm_radix.c	Thu Feb 14 15:24:13 2013	(r246795)
@@ -405,7 +405,7 @@ vm_radix_insert(struct vm_radix *rtree, 
 		vm_radix_addpage(rnode, index, 0, page);
 		return;
 	}
-	while (rnode) {
+	while (rnode != NULL) {
 		if (vm_radix_keybarr(rnode, index) == TRUE)
 			break;
 		slot = vm_radix_slot(index, rnode->rn_clev);
@@ -481,7 +481,7 @@ vm_radix_lookup(struct vm_radix *rtree, 
 	int slot;
 
 	rnode = vm_radix_getroot(rtree);
-	while (rnode) {
+	while (rnode != NULL) {
 		if (vm_radix_keybarr(rnode, index) == TRUE)
 			return (NULL);
 		slot = vm_radix_slot(index, rnode->rn_clev);
@@ -518,7 +518,7 @@ restart:
 	for (difflev = 0; difflev < (VM_RADIX_LIMIT + 1); difflev++)
 		maplevels[difflev] = FALSE;
 	rnode = vm_radix_getroot(rtree);
-	while (rnode) {
+	while (rnode != NULL) {
 		maplevels[rnode->rn_clev] = TRUE;
 
 		/*
@@ -607,7 +607,7 @@ restart:
 	for (difflev = 0; difflev < (VM_RADIX_LIMIT + 1); difflev++)
 		maplevels[difflev] = FALSE;
 	rnode = vm_radix_getroot(rtree);
-	while (rnode) {
+	while (rnode != NULL) {
 		maplevels[rnode->rn_clev] = TRUE;
 
 		/*


More information about the svn-src-user mailing list