summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2013-09-15 12:23:06 +0000
committermartin <martin@NetBSD.org>2013-09-15 12:23:06 +0000
commit772d8c8ffab87a1a3a392e0afd1c938d682f257e (patch)
treec4a89f5463b683099968b82129cf7e78910ad8e0 /sys/dev/raidframe
parentf8d4a200f3290eb7761f819659e0e1d2f6e3af27 (diff)
Remove unused variables
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_dagffrd.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/raidframe/rf_dagffrd.c b/sys/dev/raidframe/rf_dagffrd.c
index b96c5e4c0cb..4da4bf2629e 100644
--- a/sys/dev/raidframe/rf_dagffrd.c
+++ b/sys/dev/raidframe/rf_dagffrd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_dagffrd.c,v 1.18 2006/11/16 01:33:23 christos Exp $ */
+/* $NetBSD: rf_dagffrd.c,v 1.19 2013/09/15 12:23:06 martin Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_dagffrd.c,v 1.18 2006/11/16 01:33:23 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_dagffrd.c,v 1.19 2013/09/15 12:23:06 martin Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -133,7 +133,7 @@ rf_CreateNonredundantDAG(RF_Raid_t *raidPtr,
RF_DagNode_t *tmpNode, *tmpdiskNode;
RF_PhysDiskAddr_t *pda = asmap->physInfo;
int (*doFunc) (RF_DagNode_t *), (*undoFunc) (RF_DagNode_t *);
- int i, n, totalNumNodes;
+ int i, n;
const char *name;
n = asmap->numStripeUnitsAccessed;
@@ -179,7 +179,6 @@ rf_CreateNonredundantDAG(RF_Raid_t *raidPtr,
* 1 terminator node
*/
RF_ASSERT(n > 0);
- totalNumNodes = n + 3;
for (i = 0; i < n; i++) {
tmpNode = rf_AllocDAGNode();
@@ -326,7 +325,7 @@ CreateMirrorReadDAG(RF_Raid_t *raidPtr, RF_AccessStripeMap_t *asmap,
RF_DagNode_t *tmpNode, *tmpreadNode;
RF_PhysDiskAddr_t *data_pda = asmap->physInfo;
RF_PhysDiskAddr_t *parity_pda = asmap->parityInfo;
- int i, n, totalNumNodes;
+ int i, n;
n = asmap->numStripeUnitsAccessed;
dag_h->creator = "RaidOneReadDAG";
@@ -351,7 +350,6 @@ CreateMirrorReadDAG(RF_Raid_t *raidPtr, RF_AccessStripeMap_t *asmap,
* 1 terminator node
*/
RF_ASSERT(n > 0);
- totalNumNodes = n + 3;
for (i = 0; i < n; i++) {
tmpNode = rf_AllocDAGNode();