Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Remove some unused variables.



details:   https://anonhg.NetBSD.org/src/rev/1c68bc6f94cf
branches:  trunk
changeset: 790391:1c68bc6f94cf
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sat Oct 05 16:50:31 2013 +0000

description:
Remove some unused variables.

diffstat:

 sys/arch/x86/x86/pmap.c        |  6 ++----
 sys/arch/x86/x86/x86_machdep.c |  7 ++-----
 2 files changed, 4 insertions(+), 9 deletions(-)

diffs (64 lines):

diff -r f8c6e4480e40 -r 1c68bc6f94cf sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Sat Oct 05 11:20:34 2013 +0000
+++ b/sys/arch/x86/x86/pmap.c   Sat Oct 05 16:50:31 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.179 2012/11/13 14:07:42 chs Exp $   */
+/*     $NetBSD: pmap.c,v 1.180 2013/10/05 16:50:31 rmind Exp $ */
 
 /*-
  * Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
@@ -171,7 +171,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.179 2012/11/13 14:07:42 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.180 2013/10/05 16:50:31 rmind Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -3549,12 +3549,10 @@
        struct pv_entry *killlist = NULL;
        struct vm_page *ptp;
        pt_entry_t expect;
-       lwp_t *l;
        int count;
 
        KASSERT(uvm_page_locked_p(pg));
 
-       l = curlwp;
        pp = VM_PAGE_TO_PP(pg);
        expect = pmap_pa2pte(VM_PAGE_TO_PHYS(pg)) | PG_V;
        count = SPINLOCK_BACKOFF_MIN;
diff -r f8c6e4480e40 -r 1c68bc6f94cf sys/arch/x86/x86/x86_machdep.c
--- a/sys/arch/x86/x86/x86_machdep.c    Sat Oct 05 11:20:34 2013 +0000
+++ b/sys/arch/x86/x86/x86_machdep.c    Sat Oct 05 16:50:31 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_machdep.c,v 1.60 2013/08/31 12:26:56 jmcneill Exp $        */
+/*     $NetBSD: x86_machdep.c,v 1.61 2013/10/05 16:50:31 rmind Exp $   */
 
 /*-
  * Copyright (c) 2002, 2006, 2007 YAMAMOTO Takashi,
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.60 2013/08/31 12:26:56 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_machdep.c,v 1.61 2013/10/05 16:50:31 rmind Exp $");
 
 #include "opt_modular.h"
 #include "opt_physmem.h"
@@ -295,14 +295,11 @@
 bool
 cpu_kpreempt_enter(uintptr_t where, int s)
 {
-       struct cpu_info *ci;
        struct pcb *pcb;
        lwp_t *l;
 
        KASSERT(kpreempt_disabled());
-
        l = curlwp;
-       ci = curcpu();
 
        /*
         * If SPL raised, can't go.  Note this implies that spin



Home | Main Index | Thread Index | Old Index