mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
- Remove redundant initialization.
- Compare pointer with NULL.
This commit is contained in:
parent
124427f96d
commit
f013ccb768
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169888
@ -614,12 +614,11 @@ cache_purgevfs(mp)
|
||||
struct nchashhead mplist;
|
||||
|
||||
LIST_INIT(&mplist);
|
||||
ncp = NULL;
|
||||
|
||||
/* Scan hash tables for applicable entries */
|
||||
CACHE_LOCK();
|
||||
for (ncpp = &nchashtbl[nchash]; ncpp >= nchashtbl; ncpp--) {
|
||||
for (ncp = LIST_FIRST(ncpp); ncp != 0; ncp = nnp) {
|
||||
for (ncp = LIST_FIRST(ncpp); ncp != NULL; ncp = nnp) {
|
||||
nnp = LIST_NEXT(ncp, nc_hash);
|
||||
if (ncp->nc_dvp->v_mount == mp) {
|
||||
LIST_REMOVE(ncp, nc_hash);
|
||||
|
Loading…
Reference in New Issue
Block a user