Module Name:    src
Committed By:   riz
Date:           Fri Nov 22 18:56:27 UTC 2013

Modified Files:
        src/sys/dev/raidframe: rf_parityloggingdags.c

Log Message:
Remove RAID_DIAGNOSTIC around a variable and mark __unused instead.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/raidframe/rf_parityloggingdags.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/raidframe/rf_parityloggingdags.c
diff -u src/sys/dev/raidframe/rf_parityloggingdags.c:1.19 src/sys/dev/raidframe/rf_parityloggingdags.c:1.20
--- src/sys/dev/raidframe/rf_parityloggingdags.c:1.19	Tue Nov 18 14:29:55 2008
+++ src/sys/dev/raidframe/rf_parityloggingdags.c	Fri Nov 22 18:56:27 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: rf_parityloggingdags.c,v 1.19 2008/11/18 14:29:55 ad Exp $	*/
+/*	$NetBSD: rf_parityloggingdags.c,v 1.20 2013/11/22 18:56:27 riz Exp $	*/
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_parityloggingdags.c,v 1.19 2008/11/18 14:29:55 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_parityloggingdags.c,v 1.20 2013/11/22 18:56:27 riz Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_raid_diagnostic.h"
@@ -342,9 +342,7 @@ rf_CommonCreateParityLoggingSmallWriteDA
 	int     (*qfunc) (RF_DagNode_t * node);
 	const char   *name, *qname;
 	RF_StripeNum_t parityStripeID = rf_RaidAddressToParityStripeID(&(raidPtr->Layout), asmap->raidAddress, &which_ru);
-#ifdef RAID_DIAGNOSTIC
-	long    nfaults = qfuncs ? 2 : 1;
-#endif /* RAID_DIAGNOSTIC */
+	long    nfaults __unused = qfuncs ? 2 : 1;
 
 	if (rf_dagDebug)
 		printf("[Creating parity-logging small-write DAG]\n");

Reply via email to