Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/ad-namecache]: src/sys/kern Fix namecache_print().



details:   https://anonhg.NetBSD.org/src/rev/4fd0dfdb87ed
branches:  ad-namecache
changeset: 467262:4fd0dfdb87ed
user:      ad <ad%NetBSD.org@localhost>
date:      Sat Jan 18 17:16:20 2020 +0000

description:
Fix namecache_print().

diffstat:

 sys/kern/vfs_cache.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 503cd7102acd -r 4fd0dfdb87ed sys/kern/vfs_cache.c
--- a/sys/kern/vfs_cache.c      Sat Jan 18 17:14:13 2020 +0000
+++ b/sys/kern/vfs_cache.c      Sat Jan 18 17:16:20 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_cache.c,v 1.126.2.7 2020/01/18 15:42:02 ad Exp $   */
+/*     $NetBSD: vfs_cache.c,v 1.126.2.8 2020/01/18 17:16:20 ad Exp $   */
 
 /*-
  * Copyright (c) 2008, 2019, 2020 The NetBSD Foundation, Inc.
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.126.2.7 2020/01/18 15:42:02 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.126.2.8 2020/01/18 17:16:20 ad Exp $");
 
 #define __NAMECACHE_PRIVATE
 #ifdef _KERNEL_OPT
@@ -1388,7 +1388,6 @@
 void
 namecache_print(struct vnode *vp, void (*pr)(const char *, ...))
 {
-       struct vnode *dvp = NULL;
        struct namecache *nc;
        struct nchnode *dnn;
        enum cache_lru_id id;
@@ -1402,7 +1401,7 @@
                        }
                }
        }
-       if (dvp == NULL) {
+       if (dnn == NULL) {
                (*pr)("name not found\n");
                return;
        }



Home | Main Index | Thread Index | Old Index