svn commit: r270090 - stable/10/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Sun Aug 17 07:06:56 UTC 2014
Author: mjg
Date: Sun Aug 17 07:06:55 2014
New Revision: 270090
URL: http://svnweb.freebsd.org/changeset/base/270090
Log:
MFC r268514:
Eliminate plim and vtmp local vars in exit1.
No functional changes.
Modified:
stable/10/sys/kern/kern_exit.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/kern/kern_exit.c
==============================================================================
--- stable/10/sys/kern/kern_exit.c Sun Aug 17 07:05:30 2014 (r270089)
+++ stable/10/sys/kern/kern_exit.c Sun Aug 17 07:06:55 2014 (r270090)
@@ -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);
More information about the svn-src-all
mailing list