svn commit: r364078 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Mon Aug 10 11:51:57 UTC 2020
Author: mjg
Date: Mon Aug 10 11:51:56 2020
New Revision: 364078
URL: https://svnweb.freebsd.org/changeset/base/364078
Log:
cache: remove unused variables from cache_fplookup_parse
Modified:
head/sys/kern/vfs_cache.c
Modified: head/sys/kern/vfs_cache.c
==============================================================================
--- head/sys/kern/vfs_cache.c Mon Aug 10 11:51:21 2020 (r364077)
+++ head/sys/kern/vfs_cache.c Mon Aug 10 11:51:56 2020 (r364078)
@@ -3810,8 +3810,6 @@ cache_fplookup_parse(struct cache_fpl *fpl)
struct nameidata *ndp;
struct componentname *cnp;
char *cp;
- char *prev_ni_next; /* saved ndp->ni_next */
- size_t prev_ni_pathlen; /* saved ndp->ni_pathlen */
ndp = fpl->ndp;
cnp = fpl->cnp;
@@ -3831,11 +3829,9 @@ cache_fplookup_parse(struct cache_fpl *fpl)
cache_fpl_smr_exit(fpl);
return (cache_fpl_handled(fpl, ENAMETOOLONG));
}
- prev_ni_pathlen = ndp->ni_pathlen;
ndp->ni_pathlen -= cnp->cn_namelen;
KASSERT(ndp->ni_pathlen <= PATH_MAX,
("%s: ni_pathlen underflow to %zd\n", __func__, ndp->ni_pathlen));
- prev_ni_next = ndp->ni_next;
ndp->ni_next = cp;
/*
More information about the svn-src-all
mailing list