git: 10aec5991ae4 - main - autofs: whack an always-false branch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Dec 2022 15:09:29 UTC
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)