Source-Changes-HG archive

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

[src/trunk]: src/sys Remove unused variables



details:   https://anonhg.NetBSD.org/src/rev/b273d5490a07
branches:  trunk
changeset: 790051:b273d5490a07
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 15 14:53:03 2013 +0000

description:
Remove unused variables

diffstat:

 sys/dev/pci/trm.c  |  11 +++++------
 sys/kern/tty_pty.c |   8 ++------
 2 files changed, 7 insertions(+), 12 deletions(-)

diffs (80 lines):

diff -r 86ccaf0ec9df -r b273d5490a07 sys/dev/pci/trm.c
--- a/sys/dev/pci/trm.c Sun Sep 15 14:47:40 2013 +0000
+++ b/sys/dev/pci/trm.c Sun Sep 15 14:53:03 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trm.c,v 1.33 2012/05/10 03:16:50 macallan Exp $        */
+/*     $NetBSD: trm.c,v 1.34 2013/09/15 14:53:03 martin Exp $  */
 /*-
  * Copyright (c) 2002 Izumi Tsutsui.  All rights reserved.
  *
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trm.c,v 1.33 2012/05/10 03:16:50 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trm.c,v 1.34 2013/09/15 14:53:03 martin Exp $");
 
 /* #define TRM_DEBUG */
 #ifdef TRM_DEBUG
@@ -689,7 +689,7 @@
        struct trm_softc *sc;
        struct trm_srb *srb;
        struct scsipi_xfer *xs;
-       int error, i, target, lun, s;
+       int error, i, s;
 
        sc = device_private(chan->chan_adapter->adapt_dev);
        iot = sc->sc_iot;
@@ -698,10 +698,9 @@
        switch (req) {
        case ADAPTER_REQ_RUN_XFER:
                xs = arg;
-               target = xs->xs_periph->periph_target;
-               lun = xs->xs_periph->periph_lun;
                DPRINTF(("trm_scsipi_request.....\n"));
-               DPRINTF(("target= %d lun= %d\n", target, lun));
+               DPRINTF(("target= %d lun= %d\n", xs->xs_periph->periph_target,
+                   xs->xs_periph->periph_lun));
                if (xs->xs_control & XS_CTL_RESET) {
                        trm_reset(sc);
                        xs->error = XS_NOERROR | XS_RESET;
diff -r 86ccaf0ec9df -r b273d5490a07 sys/kern/tty_pty.c
--- a/sys/kern/tty_pty.c        Sun Sep 15 14:47:40 2013 +0000
+++ b/sys/kern/tty_pty.c        Sun Sep 15 14:53:03 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty_pty.c,v 1.132 2012/10/20 00:21:10 apb Exp $        */
+/*     $NetBSD: tty_pty.c,v 1.133 2013/09/15 14:56:26 martin Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.132 2012/10/20 00:21:10 apb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.133 2013/09/15 14:56:26 martin Exp $");
 
 #include "opt_ptm.h"
 
@@ -855,10 +855,8 @@
 filt_ptcrdetach(struct knote *kn)
 {
        struct pt_softc *pti;
-       struct tty      *tp;
 
        pti = kn->kn_hook;
-       tp = pti->pt_tty;
 
        mutex_spin_enter(&tty_lock);
        SLIST_REMOVE(&pti->pt_selr.sel_klist, kn, knote, kn_selnext);
@@ -907,10 +905,8 @@
 filt_ptcwdetach(struct knote *kn)
 {
        struct pt_softc *pti;
-       struct tty      *tp;
 
        pti = kn->kn_hook;
-       tp = pti->pt_tty;
 
        mutex_spin_enter(&tty_lock);
        SLIST_REMOVE(&pti->pt_selw.sel_klist, kn, knote, kn_selnext);



Home | Main Index | Thread Index | Old Index