Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/hfs remove unused variables



details:   https://anonhg.NetBSD.org/src/rev/3042145a613d
branches:  trunk
changeset: 790632:3042145a613d
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 18 19:58:11 2013 +0000

description:
remove unused variables

diffstat:

 sys/fs/hfs/hfs_vnops.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (48 lines):

diff -r b4faaeeb3d12 -r 3042145a613d sys/fs/hfs/hfs_vnops.c
--- a/sys/fs/hfs/hfs_vnops.c    Fri Oct 18 19:57:28 2013 +0000
+++ b/sys/fs/hfs/hfs_vnops.c    Fri Oct 18 19:58:11 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hfs_vnops.c,v 1.27 2013/03/18 19:35:37 plunky Exp $    */
+/*     $NetBSD: hfs_vnops.c,v 1.28 2013/10/18 19:58:11 christos Exp $  */
 
 /*-
  * Copyright (c) 2005, 2007 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hfs_vnops.c,v 1.27 2013/03/18 19:35:37 plunky Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hfs_vnops.c,v 1.28 2013/10/18 19:58:11 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ipsec.h"
@@ -325,7 +325,6 @@
                struct vnode ** a_vpp;
                struct componentname * a_cnp;
        } */ *ap = v;
-       struct buf *bp;                 /* a buffer of directory entries */
        struct componentname *cnp;
        struct hfsnode *dp;     /* hfsnode for directory being searched */
        kauth_cred_t cred;
@@ -343,7 +342,6 @@
 
        DPRINTF(("VOP = hfs_vop_lookup()\n"));
 
-       bp = NULL;
        cnp = ap->a_cnp;
        cred = cnp->cn_cred;
        vdp = ap->a_dvp;
@@ -1027,13 +1025,11 @@
        } */ *ap = v;
        struct vnode *vp;
        struct hfsnode *hp;
-       struct hfsmount *hmp;
        
        DPRINTF(("VOP = hfs_vop_reclaim()\n"));
 
        vp = ap->a_vp;
        hp = VTOH(vp);
-       hmp = hp->h_hmp;
 
        /* Remove the hfsnode from its hash chain. */
        hfs_nhashremove(hp);



Home | Main Index | Thread Index | Old Index