Source-Changes-HG archive

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

[src/trunk]: src/sys/msdosfs Remove some variables that are set but never used.



details:   https://anonhg.NetBSD.org/src/rev/854e43b310c3
branches:  trunk
changeset: 517076:854e43b310c3
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Nov 06 07:18:14 2001 +0000

description:
Remove some variables that are set but never used.

diffstat:

 sys/msdosfs/msdosfs_fat.c    |  5 ++---
 sys/msdosfs/msdosfs_lookup.c |  4 +---
 sys/msdosfs/msdosfs_vnops.c  |  7 ++-----
 3 files changed, 5 insertions(+), 11 deletions(-)

diffs (73 lines):

diff -r cad3327c0157 -r 854e43b310c3 sys/msdosfs/msdosfs_fat.c
--- a/sys/msdosfs/msdosfs_fat.c Tue Nov 06 07:15:34 2001 +0000
+++ b/sys/msdosfs/msdosfs_fat.c Tue Nov 06 07:18:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfs_fat.c,v 1.36 2001/01/01 00:25:41 chs Exp $     */
+/*     $NetBSD: msdosfs_fat.c,v 1.37 2001/11/06 07:18:14 simonb Exp $  */
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -975,7 +975,7 @@
        int flags;
 {
        int error;
-       u_long frcn = 0, cn, got, origcount;
+       u_long frcn = 0, cn, got;
        struct msdosfsmount *pmp = dep->de_pmp;
        struct buf *bp;
 
@@ -1002,7 +1002,6 @@
                        return (error);
        }
 
-       origcount = count;
        while (count > 0) {
 
                /*
diff -r cad3327c0157 -r 854e43b310c3 sys/msdosfs/msdosfs_lookup.c
--- a/sys/msdosfs/msdosfs_lookup.c      Tue Nov 06 07:15:34 2001 +0000
+++ b/sys/msdosfs/msdosfs_lookup.c      Tue Nov 06 07:18:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfs_lookup.c,v 1.50 2000/08/11 19:41:58 jdolecek Exp $     */
+/*     $NetBSD: msdosfs_lookup.c,v 1.51 2001/11/06 07:18:14 simonb Exp $       */
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -965,9 +965,7 @@
        int error;
        daddr_t bn;
        int blsize;
-       u_long boff;
 
-       boff = diroffset & ~pmp->pm_crbomask;
        blsize = pmp->pm_bpcluster;
        if (dirclust == MSDOSFSROOT
            && de_blk(pmp, diroffset + blsize) > pmp->pm_rootdirsize)
diff -r cad3327c0157 -r 854e43b310c3 sys/msdosfs/msdosfs_vnops.c
--- a/sys/msdosfs/msdosfs_vnops.c       Tue Nov 06 07:15:34 2001 +0000
+++ b/sys/msdosfs/msdosfs_vnops.c       Tue Nov 06 07:18:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msdosfs_vnops.c,v 1.115 2001/11/03 23:49:58 augustss Exp $     */
+/*     $NetBSD: msdosfs_vnops.c,v 1.116 2001/11/06 07:18:14 simonb Exp $       */
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -549,7 +549,6 @@
        u_long osize;
        int error = 0;
        u_long count;
-       daddr_t lastcn;
        int ioflag = ap->a_ioflag;
        void *win;
        vsize_t bytelen;
@@ -622,9 +621,7 @@
                if ((error = extendfile(dep, count, NULL, NULL, 0)) &&
                    (error != ENOSPC || (ioflag & IO_UNIT)))
                        goto errexit;
-               lastcn = dep->de_fc[FC_LASTFC].fc_frcn;
-       } else
-               lastcn = de_clcount(pmp, osize) - 1;
+       }
 
        if (dep->de_FileSize < uio->uio_offset + resid) {
                dep->de_FileSize = uio->uio_offset + resid;



Home | Main Index | Thread Index | Old Index