diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1994-10-02 17:27:07 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1994-10-02 17:27:07 +0000 |
| commit | 48fbb6cc7ed5656412564c998ee4d494c6269a65 (patch) | |
| tree | 872dcb4237f95fe1c61b19e3e868408388109a43 /sys/nfs/nfs_node.c | |
| parent | f86eaaca2cddbd6cbac926f9860b8ec3c664d3fd (diff) | |
Notes
Diffstat (limited to 'sys/nfs/nfs_node.c')
| -rw-r--r-- | sys/nfs/nfs_node.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/nfs/nfs_node.c b/sys/nfs/nfs_node.c index 00e42c2d4f18..974edde6e659 100644 --- a/sys/nfs/nfs_node.c +++ b/sys/nfs/nfs_node.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_node.c 8.2 (Berkeley) 12/30/93 - * $Id: nfs_node.c,v 1.3 1994/08/02 07:52:06 davidg Exp $ + * $Id: nfs_node.c,v 1.4 1994/08/10 19:48:23 davidg Exp $ */ #include <sys/param.h> @@ -123,7 +123,8 @@ loop: *npp = np; return(0); } - if (error = getnewvnode(VT_NFS, mntp, nfsv2_vnodeop_p, &nvp)) { + error = getnewvnode(VT_NFS, mntp, nfsv2_vnodeop_p, &nvp); + if (error) { *npp = 0; return (error); } @@ -135,7 +136,8 @@ loop: * Insert the nfsnode in the hash queue for its new file handle */ np->n_flag = 0; - if (nq = *nhpp) + nq = *nhpp; + if (nq) nq->n_back = &np->n_forw; np->n_forw = nq; np->n_back = nhpp; @@ -210,7 +212,8 @@ nfs_reclaim(ap) /* * Remove the nfsnode from its hash chain. */ - if (nq = np->n_forw) + nq = np->n_forw; + if (nq) nq->n_back = np->n_back; *np->n_back = nq; |
