Source-Changes-HG archive

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

[src/trunk]: src/sys/kern "tmp" in vfs_vnode_print() is set but not used; rem...



details:   https://anonhg.NetBSD.org/src/rev/18d0fba4cca7
branches:  trunk
changeset: 538527:18d0fba4cca7
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Oct 22 03:38:21 2002 +0000

description:
"tmp" in vfs_vnode_print() is set but not used; remove it.

diffstat:

 sys/kern/vfs_subr.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 5a184d505493 -r 18d0fba4cca7 sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c       Tue Oct 22 03:35:10 2002 +0000
+++ b/sys/kern/vfs_subr.c       Tue Oct 22 03:38:21 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_subr.c,v 1.178 2002/09/06 13:18:43 gehenna Exp $   */
+/*     $NetBSD: vfs_subr.c,v 1.179 2002/10/22 03:38:21 simonb Exp $    */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.178 2002/09/06 13:18:43 gehenna Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.179 2002/10/22 03:38:21 simonb Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -2798,7 +2798,6 @@
 {
        char buf[256];
        const char *vtype, *vtag;
-       int tmp;
 
        uvm_object_printit(&vp->v_uobj, full, pr);
        bitmask_snprintf(vp->v_flag, vnode_flagbits, buf, sizeof(buf));
@@ -2810,10 +2809,10 @@
              vp->v_data, vp->v_usecount, vp->v_writecount,
              vp->v_holdcnt, vp->v_numoutput);
 
-       vtype = ((tmp = vp->v_type) >= 0 &&
+       vtype = (vp->v_type >= 0 &&
                 vp->v_type < sizeof(vnode_types) / sizeof(vnode_types[0])) ?
                vnode_types[vp->v_type] : "UNKNOWN";
-       vtag = ((tmp = vp->v_tag) >= 0 &&
+       vtag = (vp->v_tag >= 0 &&
                vp->v_tag < sizeof(vnode_tags) / sizeof(vnode_tags[0])) ?
                vnode_tags[vp->v_tag] : "UNKNOWN";
        



Home | Main Index | Thread Index | Old Index