From 77578bbc3a8b36b7e1e33f548ce4a2a28b652ef9 Mon Sep 17 00:00:00 2001 From: cegger Date: Wed, 17 Jun 2009 19:12:48 +0000 Subject: [PATCH] make this build w/o SIISATA_DEBUG --- sys/dev/ic/siisata.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/siisata.c b/sys/dev/ic/siisata.c index 3467de0642b3..1d2b707b1820 100644 --- a/sys/dev/ic/siisata.c +++ b/sys/dev/ic/siisata.c @@ -1,4 +1,4 @@ -/* $NetBSD: siisata.c,v 1.3 2009/06/17 04:37:57 jakllsch Exp $ */ +/* $NetBSD: siisata.c,v 1.4 2009/06/17 19:12:48 cegger Exp $ */ /* from ahcisata_core.c */ @@ -876,8 +876,10 @@ siisata_cmd_kill_xfer(struct ata_channel *chp, struct ata_xfer *xfer, int siisata_cmd_complete(struct ata_channel *chp, struct ata_xfer *xfer, int slot) { - struct siisata_softc *sc = (struct siisata_softc *)chp->ch_atac; struct ata_command *ata_c = xfer->c_cmd; +#ifdef SIISATA_DEBUG + struct siisata_softc *sc = (struct siisata_softc *)chp->ch_atac; +#endif SIISATA_DEBUG_PRINT( ("%s: %s\n", SIISATANAME(sc), __func__), DEBUG_FUNCS);