diff options
author | jake <jake@FreeBSD.org> | 2002-02-27 00:31:31 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-02-27 00:31:31 +0000 |
commit | b81cd84d30cf0e3c2fc70737cb8a9e2ba43b3bde (patch) | |
tree | cfce3c25cc5bc4da9838d47e5588101ef92abd84 /sys/sparc64 | |
parent | 0f47dc51520b44adbf3edb846217ababfc999047 (diff) | |
download | FreeBSD-src-b81cd84d30cf0e3c2fc70737cb8a9e2ba43b3bde.zip FreeBSD-src-b81cd84d30cf0e3c2fc70737cb8a9e2ba43b3bde.tar.gz |
Minor cleanup.
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/vm_machdep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c index 49ba028..18f528c 100644 --- a/sys/sparc64/sparc64/vm_machdep.c +++ b/sys/sparc64/sparc64/vm_machdep.c @@ -73,12 +73,14 @@ void cpu_exit(struct thread *td) { struct md_utrap *ut; + struct proc *p; - if ((ut = td->td_proc->p_md.md_utrap) != NULL) { + p = td->td_proc; + if ((ut = p->p_md.md_utrap) != NULL) { ut->ut_refcnt--; if (ut->ut_refcnt == 0) free(ut, M_SUBPROC); - td->td_proc->p_md.md_utrap = NULL; + p->p_md.md_utrap = NULL; } } |