Source-Changes-HG archive

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

[src/trunk]: src/sys/kern remove unused variable



details:   https://anonhg.NetBSD.org/src/rev/61046b1eeb79
branches:  trunk
changeset: 782744:61046b1eeb79
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Nov 18 18:36:01 2012 +0000

description:
remove unused variable

diffstat:

 sys/kern/kern_event.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r ff8d2046e1d0 -r 61046b1eeb79 sys/kern/kern_event.c
--- a/sys/kern/kern_event.c     Sun Nov 18 18:25:50 2012 +0000
+++ b/sys/kern/kern_event.c     Sun Nov 18 18:36:01 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_event.c,v 1.77 2012/11/17 21:55:24 joerg Exp $    */
+/*     $NetBSD: kern_event.c,v 1.78 2012/11/18 18:36:01 pooka Exp $    */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.77 2012/11/17 21:55:24 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.78 2012/11/18 18:36:01 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -450,11 +450,10 @@
 static int
 filt_procattach(struct knote *kn)
 {
-       struct proc *p, *curp;
+       struct proc *p;
        struct lwp *curl;
 
        curl = curlwp;
-       curp = curl->l_proc;
 
        mutex_enter(proc_lock);
        if (kn->kn_flags & EV_FLAG1) {



Home | Main Index | Thread Index | Old Index