Remove some variables that are set but never used.
This commit is contained in:
parent
915441c64b
commit
c56d879335
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ext2fs_bmap.c,v 1.6 2001/10/26 05:56:07 lukem Exp $ */
|
||||
/* $NetBSD: ext2fs_bmap.c,v 1.7 2001/11/06 07:11:29 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Manuel Bouyer.
|
||||
|
@ -118,7 +118,6 @@ ext2fs_bmaparray(vp, bn, bnp, ap, nump, runp)
|
|||
struct buf *bp;
|
||||
struct ufsmount *ump;
|
||||
struct mount *mp;
|
||||
struct vnode *devvp;
|
||||
struct indir a[NIADDR+1], *xap;
|
||||
ufs_daddr_t daddr;
|
||||
long metalbn;
|
||||
|
@ -166,8 +165,6 @@ ext2fs_bmaparray(vp, bn, bnp, ap, nump, runp)
|
|||
/* Get disk address out of indirect block array */
|
||||
daddr = fs2h32(ip->i_e2fs_blocks[NDADDR + xap->in_off]);
|
||||
|
||||
devvp = VFSTOUFS(vp->v_mount)->um_devvp;
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
if (num > NIADDR + 1 || num < 1) {
|
||||
printf("ext2fs_bmaparray: num=%d\n", num);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ffs_vnops.c,v 1.44 2001/10/30 01:11:54 lukem Exp $ */
|
||||
/* $NetBSD: ffs_vnops.c,v 1.45 2001/11/06 07:11:29 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -36,7 +36,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ffs_vnops.c,v 1.44 2001/10/30 01:11:54 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ffs_vnops.c,v 1.45 2001/11/06 07:11:29 simonb Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -250,7 +250,7 @@ ffs_fsync(v)
|
|||
int s, num, error, i;
|
||||
struct indir ia[NIADDR + 1];
|
||||
int bsize;
|
||||
daddr_t blk_low, blk_high;
|
||||
daddr_t blk_high;
|
||||
struct vnode *vp;
|
||||
|
||||
/*
|
||||
|
@ -262,7 +262,6 @@ ffs_fsync(v)
|
|||
vp = ap->a_vp;
|
||||
|
||||
bsize = ap->a_vp->v_mount->mnt_stat.f_iosize;
|
||||
blk_low = ap->a_offlo / bsize;
|
||||
blk_high = ap->a_offhi / bsize;
|
||||
if (ap->a_offhi % bsize != 0)
|
||||
blk_high++;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lfs_bio.c,v 1.37 2001/10/26 05:56:09 lukem Exp $ */
|
||||
/* $NetBSD: lfs_bio.c,v 1.38 2001/11/06 07:11:29 simonb Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -171,9 +171,6 @@ lfs_bwrite(void *v)
|
|||
struct buf *a_bp;
|
||||
} */ *ap = v;
|
||||
struct buf *bp = ap->a_bp;
|
||||
struct inode *ip;
|
||||
|
||||
ip = VTOI(bp->b_vp);
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
if (VTOI(bp->b_vp)->i_lfs->lfs_ronly == 0 && (bp->b_flags & B_ASYNC)) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lfs_inode.c,v 1.53 2001/09/15 20:36:43 chs Exp $ */
|
||||
/* $NetBSD: lfs_inode.c,v 1.54 2001/11/06 07:11:29 simonb Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -149,7 +149,6 @@ lfs_update(void *v)
|
|||
} */ *ap = v;
|
||||
struct inode *ip;
|
||||
struct vnode *vp = ap->a_vp;
|
||||
int oflag;
|
||||
struct timespec ts;
|
||||
struct lfs *fs = VFSTOUFS(vp->v_mount)->um_lfs;
|
||||
|
||||
|
@ -172,7 +171,6 @@ lfs_update(void *v)
|
|||
#endif
|
||||
tsleep(vp, (PRIBIO+1), "lfs_update", 0);
|
||||
}
|
||||
oflag = ip->i_flag;
|
||||
TIMEVAL_TO_TIMESPEC(&time, &ts);
|
||||
LFS_ITIMES(ip,
|
||||
ap->a_access ? ap->a_access : &ts,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ufs_bmap.c,v 1.11 2001/10/26 05:56:10 lukem Exp $ */
|
||||
/* $NetBSD: ufs_bmap.c,v 1.12 2001/11/06 07:11:30 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1991, 1993
|
||||
|
@ -112,7 +112,6 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp)
|
|||
struct buf *bp;
|
||||
struct ufsmount *ump;
|
||||
struct mount *mp;
|
||||
struct vnode *devvp;
|
||||
struct indir a[NIADDR + 1], *xap;
|
||||
ufs_daddr_t daddr;
|
||||
long metalbn;
|
||||
|
@ -165,7 +164,6 @@ ufs_bmaparray(vp, bn, bnp, ap, nump, runp)
|
|||
daddr = ufs_rw32(ip->i_ffs_ib[xap->in_off],
|
||||
UFS_MPNEEDSWAP(vp->v_mount));
|
||||
|
||||
devvp = VFSTOUFS(vp->v_mount)->um_devvp;
|
||||
for (bp = NULL, ++xap; --num; ++xap) {
|
||||
/*
|
||||
* Exit the loop if there is no disk address assigned yet and
|
||||
|
|
Loading…
Reference in New Issue