aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/i386/vm_machdep.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2005-04-12 23:12:46 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2005-04-12 23:12:46 +0000
commitae3676c4e2a1d293e659ea7b768576745e01a5c8 (patch)
tree2322476497b69c23c5e9924a0e6266b90e3f2cd1 /sys/i386/i386/vm_machdep.c
parent181897f05ff42c8b2f96fe15265f96e78bcc7753 (diff)
downloadsrc-ae3676c4e2a1d293e659ea7b768576745e01a5c8.tar.gz
src-ae3676c4e2a1d293e659ea7b768576745e01a5c8.zip
Use NULL rather than 0 in a couple of places.
Notes
Notes: svn path=/head/; revision=144969
Diffstat (limited to 'sys/i386/i386/vm_machdep.c')
-rw-r--r--sys/i386/i386/vm_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c
index 033b8d86f8ce..7f211947eeb7 100644
--- a/sys/i386/i386/vm_machdep.c
+++ b/sys/i386/i386/vm_machdep.c
@@ -328,7 +328,7 @@ cpu_thread_clean(struct thread *td)
struct pcb *pcb;
pcb = td->td_pcb;
- if (pcb->pcb_ext != 0) {
+ if (pcb->pcb_ext != NULL) {
/* XXXKSE XXXSMP not SMP SAFE.. what locks do we have? */
/* if (pcb->pcb_ext->ext_refcount-- == 1) ?? */
/*
@@ -337,7 +337,7 @@ cpu_thread_clean(struct thread *td)
*/
kmem_free(kernel_map, (vm_offset_t)pcb->pcb_ext,
ctob(IOPAGES + 1));
- pcb->pcb_ext = 0;
+ pcb->pcb_ext = NULL;
}
}