Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Remove assigned-to but not used variable.



details:   https://anonhg.NetBSD.org/src/rev/f34ab10376c2
branches:  trunk
changeset: 543328:f34ab10376c2
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Feb 23 04:53:51 2003 +0000

description:
Remove assigned-to but not used variable.

diffstat:

 sys/uvm/uvm_map.c     |  6 ++----
 sys/uvm/uvm_pdaemon.c |  6 +++---
 2 files changed, 5 insertions(+), 7 deletions(-)

diffs (61 lines):

diff -r 474812da46a3 -r f34ab10376c2 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Sun Feb 23 04:53:17 2003 +0000
+++ b/sys/uvm/uvm_map.c Sun Feb 23 04:53:51 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.132 2003/02/21 16:38:44 matt Exp $       */
+/*     $NetBSD: uvm_map.c,v 1.133 2003/02/23 04:53:51 simonb Exp $     */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.132 2003/02/21 16:38:44 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.133 2003/02/23 04:53:51 simonb Exp $");
 
 #include "opt_ddb.h"
 #include "opt_uvmhist.h"
@@ -3186,7 +3186,6 @@
        struct vm_map *new_map;
        struct vm_map_entry *old_entry;
        struct vm_map_entry *new_entry;
-       pmap_t new_pmap;
        UVMHIST_FUNC("uvmspace_fork"); UVMHIST_CALLED(maphist);
 
        vm_map_lock(old_map);
@@ -3195,7 +3194,6 @@
        memcpy(&vm2->vm_startcopy, &vm1->vm_startcopy,
        (caddr_t) (vm1 + 1) - (caddr_t) &vm1->vm_startcopy);
        new_map = &vm2->vm_map;           /* XXX */
-       new_pmap = new_map->pmap;
 
        old_entry = old_map->header.next;
 
diff -r 474812da46a3 -r f34ab10376c2 sys/uvm/uvm_pdaemon.c
--- a/sys/uvm/uvm_pdaemon.c     Sun Feb 23 04:53:17 2003 +0000
+++ b/sys/uvm/uvm_pdaemon.c     Sun Feb 23 04:53:51 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_pdaemon.c,v 1.48 2002/11/24 11:50:32 scw Exp $     */
+/*     $NetBSD: uvm_pdaemon.c,v 1.49 2003/02/23 04:54:27 simonb Exp $  */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.48 2002/11/24 11:50:32 scw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.49 2003/02/23 04:54:27 simonb Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -531,7 +531,7 @@
 
                        if ((p->pqflags & PQ_SWAPBACKED) == 0) {
                                uvm_unlock_pageq();
-                               error = (uobj->pgops->pgo_put)(uobj, p->offset,
+                               (uobj->pgops->pgo_put)(uobj, p->offset,
                                    p->offset + PAGE_SIZE,
                                    PGO_CLEANIT|PGO_FREE);
                                uvm_lock_pageq();



Home | Main Index | Thread Index | Old Index