Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 2022 15:09:29 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 10aec5991ae4 - main - autofs: whack an always-false branch
Message-ID:  <202212191509.2BJF9Tu4042686@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=10aec5991ae43cf1ae54c779789281bce120db86

commit 10aec5991ae43cf1ae54c779789281bce120db86
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2022-12-19 14:56:42 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2022-12-19 14:57:47 +0000

    autofs: whack an always-false branch
---
 sys/fs/autofs/autofs_vnops.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/sys/fs/autofs/autofs_vnops.c b/sys/fs/autofs/autofs_vnops.c
index c06d6a24b9b8..7f120c4922d4 100644
--- a/sys/fs/autofs/autofs_vnops.c
+++ b/sys/fs/autofs/autofs_vnops.c
@@ -683,12 +683,7 @@ autofs_node_vn(struct autofs_node *anp, struct mount *mp, int flags,
 		return (error);
 	}
 
-	error = vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
-	if (error != 0) {
-		sx_xunlock(&anp->an_vnode_lock);
-		vdrop(vp);
-		return (error);
-	}
+	vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
 
 	vp->v_type = VDIR;
 	if (anp->an_parent == NULL)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212191509.2BJF9Tu4042686>