From: espie Date: Thu, 26 Dec 2013 07:17:15 +0000 (+0000) Subject: either dvp == vp or dvp != vp: zap extra test. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=faabbf2c17d07f897c81d6d0c966e1c13f7338b1;p=openbsd either dvp == vp or dvp != vp: zap extra test. okay guenther@ --- 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); }