git: 14ec281a09d7 - main - namei: Remove a now-unused variable

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Fri, 23 May 2025 16:08:28 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=14ec281a09d7818def2083ef0c3e28f8101f4268

commit 14ec281a09d7818def2083ef0c3e28f8101f4268
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-05-23 15:35:05 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-05-23 16:08:21 +0000

    namei: Remove a now-unused variable
    
    Reported by:    bapt
    Fixes:          7587f6d4840f ("namei: Make stackable filesystems check harder for jail roots")
---
 sys/kern/vfs_cache.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index f2368877ec93..69de06cff193 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -5273,16 +5273,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