Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs Remove variable that is only assigned to but not ref...
details: https://anonhg.NetBSD.org/src/rev/21c057a401ba
branches: trunk
changeset: 542439:21c057a401ba
user: simonb <simonb%NetBSD.org@localhost>
date: Wed Jan 29 03:06:40 2003 +0000
description:
Remove variable that is only assigned to but not referenced.
diffstat:
sys/ufs/ffs/ffs_vnops.c | 6 ++----
sys/ufs/lfs/lfs_segment.c | 6 ++----
2 files changed, 4 insertions(+), 8 deletions(-)
diffs (68 lines):
diff -r 41e9d4bf4ea9 -r 21c057a401ba sys/ufs/ffs/ffs_vnops.c
--- a/sys/ufs/ffs/ffs_vnops.c Wed Jan 29 00:23:24 2003 +0000
+++ b/sys/ufs/ffs/ffs_vnops.c Wed Jan 29 03:06:40 2003 +0000
@@ -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 @@
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 @@
*/
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) {
diff -r 41e9d4bf4ea9 -r 21c057a401ba sys/ufs/lfs/lfs_segment.c
--- a/sys/ufs/lfs/lfs_segment.c Wed Jan 29 00:23:24 2003 +0000
+++ b/sys/ufs/lfs/lfs_segment.c Wed Jan 29 03:06:40 2003 +0000
@@ -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 @@
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 @@
if (propeller == 4)
propeller = 0;
#endif
- pseg_daddr = (*(sp->bpp))->b_blkno;
/*
* If there are no buffers other than the segment summary to write
Home |
Main Index |
Thread Index |
Old Index