Remove unused variables
This commit is contained in:
parent
6e3da39483
commit
22bce1acb1
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user