aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2007-05-22 23:05:48 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2007-05-22 23:05:48 +0000
commitf013ccb768f789ad2c99624e769526fd58aa25c2 (patch)
tree11e83876657bd39e8797fa31eaa48713218edd17 /sys
parent124427f96dfee1c0972e13c76ec7007a409f110b (diff)
- Remove redundant initialization.
- Compare pointer with NULL.
Notes
svn path=/head/; revision=169888
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_cache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 99808037db5a..f6391556fe8b 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -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);