Module Name:    src
Committed By:   snj
Date:           Mon Sep 28 00:18:39 UTC 2009

Modified Files:
        src/sys/dev/ic [netbsd-5]: siisata.c

Log Message:
Pull up following revision(s) (requested by jakllsch in ticket #1023):
        sys/dev/ic/siisata.c: revision 1.4
make this build w/o SIISATA_DEBUG


To generate a diff of this commit:
cvs rdiff -u -r1.2.4.1 -r1.2.4.2 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.2.4.1 src/sys/dev/ic/siisata.c:1.2.4.2
--- src/sys/dev/ic/siisata.c:1.2.4.1	Mon Sep 28 00:17:28 2009
+++ src/sys/dev/ic/siisata.c	Mon Sep 28 00:18:39 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: siisata.c,v 1.2.4.1 2009/09/28 00:17:28 snj Exp $ */
+/* $NetBSD: siisata.c,v 1.2.4.2 2009/09/28 00:18:39 snj 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);

Reply via email to