namei: Remove a now-unused variable

Approved by:	so
Reported by:	bapt
Fixes:		7587f6d484 ("namei: Make stackable filesystems check harder for jail roots")

(cherry picked from commit 14ec281a09)
(cherry picked from commit 3f4efe392b7039686057838d723a2d43ae144be5)
This commit is contained in:
Mark Johnston 2025-05-23 15:35:05 +00:00 committed by Franco Fichtner
parent 3d1e822916
commit ec57109a0f

View file

@ -5186,16 +5186,14 @@ static int __noinline
cache_fplookup_dotdot(struct cache_fpl *fpl)
{
struct nameidata *ndp;
struct componentname *cnp;
struct namecache *ncp;
struct vnode *dvp;
u_char nc_flag;
ndp = fpl->ndp;
cnp = fpl->cnp;
dvp = fpl->dvp;
MPASS(cache_fpl_isdotdot(cnp));
MPASS(cache_fpl_isdotdot(fpl->cnp));
/*
* XXX this is racy the same way regular lookup is