diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2013-12-26 07:17:16 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2013-12-26 07:17:16 +0000 |
commit | 1d12323994c36b81ea5f515f0bfe18cee502108b (patch) | |
tree | 084c9e1d5dfce931d158ccfb13abe159c3354d87 /sys/nfs/nfs_vnops.c | |
parent | a732115c1b3811d5e50633cd00590cda9665070b (diff) |
either dvp == vp or dvp != vp: zap extra test.
okay guenther@
Diffstat (limited to 'sys/nfs/nfs_vnops.c')
-rw-r--r-- | sys/nfs/nfs_vnops.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index d7d51c2cded..c20ac33c9c3 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vnops.c,v 1.148 2013/10/17 16:27:47 bluhm Exp $ */ +/* $OpenBSD: nfs_vnops.c,v 1.149 2013/12/26 07:17:15 espie Exp $ */ /* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */ /* @@ -1684,10 +1684,7 @@ nfs_link(void *v) if (dvp->v_mount != vp->v_mount) { pool_put(&namei_pool, cnp->cn_pnbuf); - if (vp == dvp) - vrele(dvp); - else - vput(dvp); + vput(dvp); return (EXDEV); } |