summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2013-09-15 12:45:11 +0000
committermartin <martin@NetBSD.org>2013-09-15 12:45:11 +0000
commitffa6cd4432c5737f9500a30ba6add059ac6b675b (patch)
tree0f8015fd7aef2ca5a439cf0c48a9869dee16fea0 /sys/dev/raidframe
parentf8cb1847240b1440600ea5c0a027484acbaecb97 (diff)
ifdef variables like their use
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_engine.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_engine.c b/sys/dev/raidframe/rf_engine.c
index e2a566f9a60..39c4adcb1b0 100644
--- a/sys/dev/raidframe/rf_engine.c
+++ b/sys/dev/raidframe/rf_engine.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_engine.c,v 1.48 2013/04/27 21:18:42 christos Exp $ */
+/* $NetBSD: rf_engine.c,v 1.49 2013/09/15 12:45:11 martin Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -55,7 +55,7 @@
****************************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.48 2013/04/27 21:18:42 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.49 2013/09/15 12:45:11 martin Exp $");
#include <sys/errno.h>
@@ -631,9 +631,11 @@ PropagateResults(RF_DagNode_t *node, int context)
static void
ProcessNode(RF_DagNode_t *node, int context)
{
+#if RF_DEBUG_ENGINE
RF_Raid_t *raidPtr;
raidPtr = node->dagHdr->raidPtr;
+#endif
switch (node->status) {
case rf_good: