Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Remove unused variable/ifdef like use



details:   https://anonhg.NetBSD.org/src/rev/ddb658e6236b
branches:  trunk
changeset: 790044:ddb658e6236b
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 15 13:56:27 2013 +0000

description:
Remove unused variable/ifdef like use

diffstat:

 sys/dev/ic/siop_common.c |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (56 lines):

diff -r 182a024f2038 -r ddb658e6236b sys/dev/ic/siop_common.c
--- a/sys/dev/ic/siop_common.c  Sun Sep 15 13:53:51 2013 +0000
+++ b/sys/dev/ic/siop_common.c  Sun Sep 15 13:56:27 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: siop_common.c,v 1.53 2010/11/13 13:52:02 uebayasi Exp $        */
+/*     $NetBSD: siop_common.c,v 1.54 2013/09/15 13:56:27 martin Exp $  */
 
 /*
  * Copyright (c) 2000, 2002 Manuel Bouyer.
@@ -28,7 +28,7 @@
 /* SYM53c7/8xx PCI-SCSI I/O Processors driver */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: siop_common.c,v 1.53 2010/11/13 13:52:02 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siop_common.c,v 1.54 2013/09/15 13:56:27 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -726,7 +726,9 @@
 {
        int offset, dbc, sstat;
        struct siop_common_softc *sc = siop_cmd->siop_sc;
+#ifdef DEBUG_DR
        scr_table_t *table; /* table with partial xfer */
+#endif
 
        /*
         * compute how much of the current table didn't get handled when
@@ -742,8 +744,8 @@
                    offset);
                return;
        }
+#ifdef DEBUG_DR
        table = &siop_cmd->siop_tables->data[offset];
-#ifdef DEBUG_DR
        printf("siop_ma: offset %d count=%d addr=0x%x ", offset,
            table->count, table->addr);
 #endif
@@ -958,7 +960,7 @@
 siop_modechange(struct siop_common_softc *sc)
 {
        int retry;
-       int sist0, sist1, stest2;
+       int sist1, stest2;
 
        for (retry = 0; retry < 5; retry++) {
                /*
@@ -968,7 +970,7 @@
                 * hopefully this will not happen often.
                 */
                delay(100000);
-               sist0 = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_SIST0);
+               (void)bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_SIST0);
                sist1 = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_SIST1);
                if (sist1 & SIEN1_SBMC)
                        continue; /* we got an irq again */



Home | Main Index | Thread Index | Old Index