diff options
| author | cegger <cegger@NetBSD.org> | 2009-06-17 19:12:48 +0000 |
|---|---|---|
| committer | cegger <cegger@NetBSD.org> | 2009-06-17 19:12:48 +0000 |
| commit | 77578bbc3a8b36b7e1e33f548ce4a2a28b652ef9 (patch) | |
| tree | 31c6d636edfdc83d94ac0e5bf4eaff2293d2e64a /sys/dev/ic | |
| parent | a36955c23e094c8875b1c1596c72dd2ac0e29986 (diff) | |
make this build w/o SIISATA_DEBUG
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/siisata.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/siisata.c b/sys/dev/ic/siisata.c index 3467de0642b..1d2b707b182 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); |
