Remove variable that is only assigned to but not referenced.

This commit is contained in:
simonb 2003-01-29 03:06:40 +00:00
parent 21f51b4471
commit 0adecbd12b
2 changed files with 4 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ffs_vnops.c,v 1.52 2003/01/24 21:55:24 fvdl Exp $ */
/* $NetBSD: ffs_vnops.c,v 1.53 2003/01/29 03:06:40 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.52 2003/01/24 21:55:24 fvdl Exp $");
__KERNEL_RCSID(0, "$NetBSD: ffs_vnops.c,v 1.53 2003/01/29 03:06:40 simonb Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -519,7 +519,6 @@ ffs_putpages(void *v)
struct fs *fs = ip->i_fs;
struct vm_page *pg;
off_t off;
daddr_t lbn;
if (!DOINGSOFTDEP(vp) || (ap->a_flags & PGO_CLEANIT) == 0) {
return genfs_putpages(v);
@ -532,7 +531,6 @@ ffs_putpages(void *v)
*/
ap->a_offlo &= ~fs->fs_qbmask;
lbn = lblkno(fs, ap->a_offhi);
ap->a_offhi = blkroundup(fs, ap->a_offhi);
if (curproc == uvm.pagedaemon_proc) {
for (off = ap->a_offlo; off < ap->a_offhi; off += PAGE_SIZE) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: lfs_segment.c,v 1.96 2003/01/27 23:17:57 yamt Exp $ */
/* $NetBSD: lfs_segment.c,v 1.97 2003/01/29 03:09:32 simonb Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.96 2003/01/27 23:17:57 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: lfs_segment.c,v 1.97 2003/01/29 03:09:32 simonb Exp $");
#define ivndebug(vp,str) printf("ino %d: %s\n",VTOI(vp)->i_number,(str))
@ -1584,7 +1584,6 @@ lfs_writeseg(struct lfs *fs, struct segment *sp)
struct inode *ip;
size_t pmsize;
int use_pagemove;
daddr_t pseg_daddr;
int32_t *daddrp; /* XXX ondisk32 */
int changed;
#if defined(DEBUG) && defined(LFS_PROPELLER)
@ -1595,7 +1594,6 @@ lfs_writeseg(struct lfs *fs, struct segment *sp)
if (propeller == 4)
propeller = 0;
#endif
pseg_daddr = (*(sp->bpp))->b_blkno;
/*
* If there are no buffers other than the segment summary to write