git: 5d75ffdd0c67 - main - vfs: remove an unused variable from nameicap_tracker_add
Mateusz Guzik
mjg at FreeBSD.org
Fri Aug 20 17:52:32 UTC 2021
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=5d75ffdd0c6751e220fdadcf216124013139f1ac
commit 5d75ffdd0c6751e220fdadcf216124013139f1ac
Author: Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-08-20 17:49:00 +0000
Commit: Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-08-20 17:52:24 +0000
vfs: remove an unused variable from nameicap_tracker_add
Reported by cc --analyze
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/kern/vfs_lookup.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
index a827c87538b8..a83cc6bb8b74 100644
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -178,11 +178,9 @@ static void
nameicap_tracker_add(struct nameidata *ndp, struct vnode *dp)
{
struct nameicap_tracker *nt;
- struct componentname *cnp;
if ((ndp->ni_lcf & NI_LCF_CAP_DOTDOT) == 0 || dp->v_type != VDIR)
return;
- cnp = &ndp->ni_cnd;
nt = TAILQ_LAST(&ndp->ni_cap_tracker, nameicap_tracker_head);
if (nt != NULL && nt->dp == dp)
return;
More information about the dev-commits-src-main
mailing list