Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic avoid unused variables outside of diag code.



details:   https://anonhg.NetBSD.org/src/rev/bb2de3407eef
branches:  trunk
changeset: 325283:bb2de3407eef
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Dec 16 15:49:25 2013 +0000

description:
avoid unused variables outside of diag code.

diffstat:

 sys/dev/ic/osiop.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 55beda705db8 -r bb2de3407eef sys/dev/ic/osiop.c
--- a/sys/dev/ic/osiop.c        Mon Dec 16 15:49:00 2013 +0000
+++ b/sys/dev/ic/osiop.c        Mon Dec 16 15:49:25 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: osiop.c,v 1.39 2010/11/13 13:52:02 uebayasi Exp $      */
+/*     $NetBSD: osiop.c,v 1.40 2013/12/16 15:49:25 mrg Exp $   */
 
 /*-
  * Copyright (c) 2001 Izumi Tsutsui.  All rights reserved.
@@ -95,7 +95,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: osiop.c,v 1.39 2010/11/13 13:52:02 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: osiop.c,v 1.40 2013/12/16 15:49:25 mrg Exp $");
 
 /* #define OSIOP_DEBUG */
 
@@ -357,7 +357,6 @@
     void *arg)
 {
        struct scsipi_xfer *xs;
-       struct scsipi_periph *periph;
        struct osiop_acb *acb;
        struct osiop_softc *sc;
        int err, flags, s;
@@ -367,7 +366,6 @@
        switch (req) {
        case ADAPTER_REQ_RUN_XFER:
                xs = arg;
-               periph = xs->xs_periph;
                flags = xs->xs_control;
 
                /* XXXX ?? */
@@ -389,7 +387,7 @@
                }
 #ifdef DIAGNOSTIC
                else {
-                       scsipi_printaddr(periph);
+                       scsipi_printaddr(xs->xs_periph);
                        printf("unable to allocate acb\n");
                        panic("osiop_scsipi_request");
                }



Home | Main Index | Thread Index | Old Index