diff options
author | eivind <eivind@FreeBSD.org> | 1998-12-09 15:12:53 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-12-09 15:12:53 +0000 |
commit | 56b8c7c8441f98b6d3c70a8b754f26b703e841a5 (patch) | |
tree | 7c14b3e3dd3371df51de727b7b03ec4867d389b6 | |
parent | c6b8f42e1b9520738fba845c344a0d60dfee57ef (diff) | |
download | FreeBSD-src-56b8c7c8441f98b6d3c70a8b754f26b703e841a5.zip FreeBSD-src-56b8c7c8441f98b6d3c70a8b754f26b703e841a5.tar.gz |
Remove the if fixed in the last commit; bde quite correctly point out
that it can never fail.
-rw-r--r-- | sys/nfs/nfs_serv.c | 5 | ||||
-rw-r--r-- | sys/nfsserver/nfs_serv.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c index a70996e..346c4fc 100644 --- a/sys/nfs/nfs_serv.c +++ b/sys/nfs/nfs_serv.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_serv.c 8.8 (Berkeley) 7/31/95 - * $Id: nfs_serv.c,v 1.70 1998/10/31 15:39:31 peter Exp $ + * $Id: nfs_serv.c,v 1.71 1998/12/08 23:11:24 eivind Exp $ */ /* @@ -1776,8 +1776,7 @@ out: vrele(nd.ni_dvp); else vput(nd.ni_dvp); - if (vp != NULLVP) - vput(vp); + vput(vp); } if (dirp && v3) { diraft_ret = VOP_GETATTR(dirp, &diraft, cred, procp); diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c index a70996e..346c4fc 100644 --- a/sys/nfsserver/nfs_serv.c +++ b/sys/nfsserver/nfs_serv.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_serv.c 8.8 (Berkeley) 7/31/95 - * $Id: nfs_serv.c,v 1.70 1998/10/31 15:39:31 peter Exp $ + * $Id: nfs_serv.c,v 1.71 1998/12/08 23:11:24 eivind Exp $ */ /* @@ -1776,8 +1776,7 @@ out: vrele(nd.ni_dvp); else vput(nd.ni_dvp); - if (vp != NULLVP) - vput(vp); + vput(vp); } if (dirp && v3) { diraft_ret = VOP_GETATTR(dirp, &diraft, cred, procp); |