git: 24628cf3dfff - releng/14.3 - namei: Remove a now-unused variable

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Tue, 27 Jan 2026 19:16:17 UTC
The branch releng/14.3 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=24628cf3dfff14ed3471a3481ab9c4a5e7d17ad5

commit 24628cf3dfff14ed3471a3481ab9c4a5e7d17ad5
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-05-23 15:35:05 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-01-26 16:49:29 +0000

    namei: Remove a now-unused variable
    
    Approved by:    so
    Reported by:    bapt
    Fixes:          7587f6d4840f ("namei: Make stackable filesystems check harder for jail roots")
    
    (cherry picked from commit 14ec281a09d7818def2083ef0c3e28f8101f4268)
    (cherry picked from commit 3f4efe392b7039686057838d723a2d43ae144be5)
---
 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 c076336a9ec9..532da8b1facc 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -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