summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2014-08-17 07:06:55 +0000
committermjg <mjg@FreeBSD.org>2014-08-17 07:06:55 +0000
commit9e281fe64ef33438aca0b765c4245ab51441f1ab (patch)
treeb15e6f075432fd6e98bbbb1f5d2d535a4da5d981 /sys/kern
parent8a70582e79022aaf9d367174162d9ae2715ff9fa (diff)
downloadFreeBSD-src-9e281fe64ef33438aca0b765c4245ab51441f1ab.zip
FreeBSD-src-9e281fe64ef33438aca0b765c4245ab51441f1ab.tar.gz
MFC r268514:
Eliminate plim and vtmp local vars in exit1. No functional changes.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_exit.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 44a0fdc..274da85 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -131,9 +131,7 @@ void
exit1(struct thread *td, int rv)
{
struct proc *p, *nq, *q;
- struct vnode *vtmp;
struct vnode *ttyvp = NULL;
- struct plimit *plim;
mtx_assert(&Giant, MA_NOTOWNED);
@@ -379,17 +377,16 @@ exit1(struct thread *td, int rv)
/*
* Release reference to text vnode
*/
- if ((vtmp = p->p_textvp) != NULL) {
+ if (p->p_textvp != NULL) {
+ vrele(p->p_textvp);
p->p_textvp = NULL;
- vrele(vtmp);
}
/*
* Release our limits structure.
*/
- plim = p->p_limit;
+ lim_free(p->p_limit);
p->p_limit = NULL;
- lim_free(plim);
tidhash_remove(td);
OpenPOWER on IntegriCloud