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" warning when FAILSAFE optio...
details: https://anonhg.NetBSD.org/src/rev/000a2c224ac0
branches: trunk
changeset: 481740:000a2c224ac0
user: dante <dante%NetBSD.org@localhost>
date: Fri Feb 04 16:23:14 2000 +0000
description:
Fix "unused variable" warning when FAILSAFE option is defined
diffstat:
sys/dev/ic/adwlib.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 3f5de29efae4 -r 000a2c224ac0 sys/dev/ic/adwlib.c
--- a/sys/dev/ic/adwlib.c Fri Feb 04 15:43:46 2000 +0000
+++ b/sys/dev/ic/adwlib.c Fri Feb 04 16:23:14 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: adwlib.c,v 1.8 2000/02/04 15:43:46 dante Exp $ */
+/* $NetBSD: adwlib.c,v 1.9 2000/02/04 16:23:14 dante Exp $ */
/*
* Low level routines for the Advanced Systems Inc. SCSI controllers chips
@@ -2385,6 +2385,7 @@
ADW_SOFTC *sc;
ADW_SCSI_REQ_Q *scsiq;
{
+#ifndef FAILSAFE
bus_space_tag_t iot = sc->sc_iot;
bus_space_handle_t ioh = sc->sc_ioh;
u_int8_t tid;
@@ -2436,7 +2437,6 @@
* device's 'wdtr_able' bit and write the new value to the
* microcode.
*/
-#ifndef FAILSAFE
#ifdef SCSI_ADW_WDTR_DISABLE
if(!(tidmask & SCSI_ADW_WDTR_DISABLE))
#endif /* SCSI_ADW_WDTR_DISABLE */
@@ -2524,8 +2524,8 @@
ASC_MC_NUMBER_OF_MAX_CMD + tid,
sc->max_dvc_qng);
}
+ }
#endif /* FAILSAFE */
- }
}
Home |
Main Index |
Thread Index |
Old Index