mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use NULL rather than 0 in a couple of places.
This commit is contained in:
parent
181897f05f
commit
ae3676c4e2
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue