Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic fix unused variable warnings
details: https://anonhg.NetBSD.org/src/rev/198938c2c816
branches: trunk
changeset: 326227:198938c2c816
user: christos <christos%NetBSD.org@localhost>
date: Wed Jan 22 15:21:08 2014 +0000
description:
fix unused variable warnings
diffstat:
sys/dev/ic/wd33c93.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (69 lines):
diff -r af5d728f8e93 -r 198938c2c816 sys/dev/ic/wd33c93.c
--- a/sys/dev/ic/wd33c93.c Wed Jan 22 15:20:40 2014 +0000
+++ b/sys/dev/ic/wd33c93.c Wed Jan 22 15:21:08 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wd33c93.c,v 1.24 2010/11/13 13:52:02 uebayasi Exp $ */
+/* $NetBSD: wd33c93.c,v 1.25 2014/01/22 15:21:08 christos Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd33c93.c,v 1.24 2010/11/13 13:52:02 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd33c93.c,v 1.25 2014/01/22 15:21:08 christos Exp $");
#include "opt_ddb.h"
@@ -1240,6 +1240,7 @@
} else {
u_char foo;
GET_SBIC_data (sc, foo);
+ __USE(foo);
}
wait = wd33c93_data_wait;
}
@@ -1377,7 +1378,6 @@
wd33c93_intr(struct wd33c93_softc *sc)
{
u_char asr, csr;
- int i;
/*
* pending interrupt?
@@ -1391,7 +1391,7 @@
do {
SBIC_DEBUG(INTS, ("intr[csr=0x%x]", csr));
- i = wd33c93_nextstate(sc, sc->sc_nexus, csr, asr);
+ (void)wd33c93_nextstate(sc, sc->sc_nexus, csr, asr);
WAIT_CIP(sc); /* XXX */
if (sc->sc_state == SBIC_CONNECTED) {
GET_SBIC_asr(sc, asr);
@@ -1421,7 +1421,7 @@
wd33c93_poll(struct wd33c93_softc *sc, struct wd33c93_acb *acb)
{
u_char asr, csr=0;
- int i, count;
+ int count;
struct scsipi_xfer *xs = acb->xs;
SBIC_WAIT(sc, SBIC_ASR_INT, wd33c93_cmd_wait);
@@ -1433,7 +1433,7 @@
if (asr & SBIC_ASR_INT) {
GET_SBIC_csr(sc, csr);
sc->sc_flags |= SBICF_NODMA;
- i = wd33c93_nextstate(sc, sc->sc_nexus, csr, asr);
+ (void)wd33c93_nextstate(sc, sc->sc_nexus, csr, asr);
WAIT_CIP(sc); /* XXX */
} else {
DELAY(1000);
@@ -1475,6 +1475,7 @@
u_char asr, csr, *msg;
GET_SBIC_asr(sc, asr);
+ __USE(asr);
SBIC_DEBUG(MSGS, ("wd33c93msgin asr=%02x\n", asr));
Home |
Main Index |
Thread Index |
Old Index