Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/0d8d8e98311f
branches: trunk
changeset: 790070:0d8d8e98311f
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 15:57:26 2013 +0000
description:
Remove unused variable
diffstat:
sys/arch/sparc64/sparc64/vm_machdep.c | 7 +++----
sys/dev/vnd.c | 8 +++-----
sys/kern/vfs_bio.c | 7 +++----
sys/kern/vfs_wapbl.c | 7 ++-----
4 files changed, 11 insertions(+), 18 deletions(-)
diffs (142 lines):
diff -r a5610a4f19fd -r 0d8d8e98311f sys/arch/sparc64/sparc64/vm_machdep.c
--- a/sys/arch/sparc64/sparc64/vm_machdep.c Sun Sep 15 15:56:07 2013 +0000
+++ b/sys/arch/sparc64/sparc64/vm_machdep.c Sun Sep 15 15:57:26 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.99 2012/02/19 21:06:32 rmind Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.100 2013/09/15 16:04:16 martin Exp $ */
/*
* Copyright (c) 1996-2002 Eduardo Horvath. All rights reserved.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.99 2012/02/19 21:06:32 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.100 2013/09/15 16:04:16 martin Exp $");
#include "opt_multiprocessor.h"
@@ -79,7 +79,7 @@
int
vmapbuf(struct buf *bp, vsize_t len)
{
- struct pmap *upmap, *kpmap;
+ struct pmap *upmap;
vaddr_t uva; /* User VA (map from) */
vaddr_t kva; /* Kernel VA (new to) */
paddr_t pa; /* physical address */
@@ -96,7 +96,6 @@
bp->b_data = (void *)(kva + off);
upmap = vm_map_pmap(&bp->b_proc->p_vmspace->vm_map);
- kpmap = vm_map_pmap(kernel_map);
do {
if (pmap_extract(upmap, uva, &pa) == FALSE)
panic("vmapbuf: null page frame");
diff -r a5610a4f19fd -r 0d8d8e98311f sys/dev/vnd.c
--- a/sys/dev/vnd.c Sun Sep 15 15:56:07 2013 +0000
+++ b/sys/dev/vnd.c Sun Sep 15 15:57:26 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vnd.c,v 1.225 2013/06/09 13:26:25 christos Exp $ */
+/* $NetBSD: vnd.c,v 1.226 2013/09/15 16:05:51 martin Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.225 2013/06/09 13:26:25 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.226 2013/09/15 16:05:51 martin Exp $");
#if defined(_KERNEL_OPT)
#include "opt_vnd.h"
@@ -601,7 +601,6 @@
*/
while ((vnd->sc_flags & VNF_VUNCONF) == 0) {
struct vndxfer *vnx;
- int flags;
struct buf *obp;
struct buf *bp;
@@ -617,7 +616,6 @@
wakeup(&vnd->sc_pending);
}
splx(s);
- flags = obp->b_flags;
#ifdef DEBUG
if (vnddebug & VDB_FOLLOW)
printf("vndthread(%p)\n", obp);
@@ -629,7 +627,7 @@
}
#ifdef VND_COMPRESSION
/* handle a compressed read */
- if ((flags & B_READ) != 0 && (vnd->sc_flags & VNF_COMP)) {
+ if ((obp->b_flags & B_READ) != 0 && (vnd->sc_flags & VNF_COMP)) {
off_t bn;
/* Convert to a byte offset within the file. */
diff -r a5610a4f19fd -r 0d8d8e98311f sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c Sun Sep 15 15:56:07 2013 +0000
+++ b/sys/kern/vfs_bio.c Sun Sep 15 15:57:26 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_bio.c,v 1.245 2013/06/28 15:34:21 christos Exp $ */
+/* $NetBSD: vfs_bio.c,v 1.246 2013/09/15 15:57:26 martin Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.245 2013/06/28 15:34:21 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.246 2013/09/15 15:57:26 martin Exp $");
#include "opt_bufcache.h"
@@ -1593,9 +1593,8 @@
buf_syncwait(void)
{
buf_t *bp;
- int iter, nbusy, nbusy_prev = 0, dcount, ihash;
+ int iter, nbusy, nbusy_prev = 0, ihash;
- dcount = 10000;
for (iter = 0; iter < 20;) {
mutex_enter(&bufcache_lock);
nbusy = 0;
diff -r a5610a4f19fd -r 0d8d8e98311f sys/kern/vfs_wapbl.c
--- a/sys/kern/vfs_wapbl.c Sun Sep 15 15:56:07 2013 +0000
+++ b/sys/kern/vfs_wapbl.c Sun Sep 15 15:57:26 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_wapbl.c,v 1.57 2013/09/15 08:11:33 joerg Exp $ */
+/* $NetBSD: vfs_wapbl.c,v 1.58 2013/09/15 15:59:37 martin Exp $ */
/*-
* Copyright (c) 2003, 2008, 2009 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
#define WAPBL_INTERNAL
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.57 2013/09/15 08:11:33 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.58 2013/09/15 15:59:37 martin Exp $");
#include <sys/param.h>
#include <sys/bitops.h>
@@ -687,7 +687,6 @@
int
wapbl_stop(struct wapbl *wl, int force)
{
- struct vnode *vp;
int error;
WAPBL_PRINTF(WAPBL_PRINT_OPEN, ("wapbl_stop called\n"));
@@ -716,8 +715,6 @@
KASSERT(SIMPLEQ_EMPTY(&wl->wl_entries));
KASSERT(wl->wl_inohashcnt == 0);
- vp = wl->wl_logvp;
-
wapbl_free(wl->wl_wc_scratch, wl->wl_wc_header->wc_len);
wapbl_free(wl->wl_wc_header, wl->wl_wc_header->wc_len);
wapbl_free(wl->wl_deallocblks,
Home |
Main Index |
Thread Index |
Old Index