From 2a46aa5d9a38bb757f524254a369014181b672ce Mon Sep 17 00:00:00 2001 From: dante Date: Fri, 4 Feb 2000 16:23:14 +0000 Subject: [PATCH] Fix "unused variable" warning when FAILSAFE option is defined --- sys/dev/ic/adwlib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/adwlib.c b/sys/dev/ic/adwlib.c index 6b779a461d27..51015a6ed988 100644 --- a/sys/dev/ic/adwlib.c +++ b/sys/dev/ic/adwlib.c @@ -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 @@ AdvInquiryHandling(sc, scsiq) 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 @@ ADW_SCSI_REQ_Q *scsiq; * 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 @@ ADW_SCSI_REQ_Q *scsiq; ASC_MC_NUMBER_OF_MAX_CMD + tid, sc->max_dvc_qng); } -#endif /* FAILSAFE */ } +#endif /* FAILSAFE */ }