Commit 5d75ffdd authored by Mateusz Guzik's avatar Mateusz Guzik
Browse files

vfs: remove an unused variable from nameicap_tracker_add

Reported by cc --analyze

Sponsored by:	Rubicon Communications, LLC ("Netgate")
parent dbc689cd
......@@ -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)
cnp = &ndp->ni_cnd;
nt = TAILQ_LAST(&ndp->ni_cap_tracker, nameicap_tracker_head);
if (nt != NULL && nt->dp == dp)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment