summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2007-12-04 08:17:04 +0000
committeralc <alc@FreeBSD.org>2007-12-04 08:17:04 +0000
commit10142e95b9a10058f271029d9f7ed376f2de4e2f (patch)
tree9a32c748a7b0f3c080ad93565c112b555b568844
parente548183f0ae7359b95b3fa42ec00ff3cd1fa50b8 (diff)
downloadFreeBSD-src-10142e95b9a10058f271029d9f7ed376f2de4e2f.zip
FreeBSD-src-10142e95b9a10058f271029d9f7ed376f2de4e2f.tar.gz
Style change: Use NULL rather than 0 where appropriate.
-rw-r--r--sys/amd64/amd64/pmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index f23ec7a..18aa5c5 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -1430,9 +1430,9 @@ retry:
* This supports switching from a 2MB page to a
* normal 4K page.
*/
- if (pd != 0 && (*pd & (PG_PS | PG_V)) == (PG_PS | PG_V)) {
+ if (pd != NULL && (*pd & (PG_PS | PG_V)) == (PG_PS | PG_V)) {
*pd = 0;
- pd = 0;
+ pd = NULL;
pmap->pm_stats.resident_count -= NBPDR / PAGE_SIZE;
free = NULL;
pmap_unuse_pt(pmap, va, *pmap_pdpe(pmap, va), &free);
@@ -1444,7 +1444,7 @@ retry:
* If the page table page is mapped, we just increment the
* hold count, and activate it.
*/
- if (pd != 0 && (*pd & PG_V) != 0) {
+ if (pd != NULL && (*pd & PG_V) != 0) {
m = PHYS_TO_VM_PAGE(*pd & PG_FRAME);
m->wire_count++;
} else {
OpenPOWER on IntegriCloud