Module Name: src
Committed By: cegger
Date: Wed Jun 17 19:12:49 UTC 2009
Modified Files:
src/sys/dev/ic: siisata.c
Log Message:
make this build w/o SIISATA_DEBUG
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ic/siisata.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/siisata.c
diff -u src/sys/dev/ic/siisata.c:1.3 src/sys/dev/ic/siisata.c:1.4
--- src/sys/dev/ic/siisata.c:1.3 Wed Jun 17 04:37:57 2009
+++ src/sys/dev/ic/siisata.c Wed Jun 17 19:12:48 2009
@@ -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 @@
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);