Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/7d84c19ddcfa
branches: trunk
changeset: 790027:7d84c19ddcfa
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 12:13:56 2013 +0000
description:
Remove unused variable
diffstat:
sys/dev/raidframe/rf_dagdegrd.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r fa897bb7720f -r 7d84c19ddcfa sys/dev/raidframe/rf_dagdegrd.c
--- a/sys/dev/raidframe/rf_dagdegrd.c Sun Sep 15 12:11:16 2013 +0000
+++ b/sys/dev/raidframe/rf_dagdegrd.c Sun Sep 15 12:13:56 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_dagdegrd.c,v 1.28 2011/08/01 12:28:53 mbalmer Exp $ */
+/* $NetBSD: rf_dagdegrd.c,v 1.29 2013/09/15 12:13:56 martin Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_dagdegrd.c,v 1.28 2011/08/01 12:28:53 mbalmer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_dagdegrd.c,v 1.29 2013/09/15 12:13:56 martin Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -268,7 +268,7 @@
RF_DagNode_t *rudNodes, *rrdNodes, *xorNode, *blockNode;
RF_DagNode_t *commitNode, *rpNode, *termNode;
RF_DagNode_t *tmpNode, *tmprudNode, *tmprrdNode;
- int nNodes, nRrdNodes, nRudNodes, nXorBufs, i;
+ int nRrdNodes, nRudNodes, nXorBufs, i;
int j, paramNum;
RF_SectorCount_t sectorsPerSU;
RF_ReconUnitNum_t which_ru;
@@ -314,8 +314,6 @@
nRudNodes = asmap->numStripeUnitsAccessed - 1;
nRrdNodes = ((new_asm_h[0]) ? new_asm_h[0]->stripeMap->numStripeUnitsAccessed : 0) +
((new_asm_h[1]) ? new_asm_h[1]->stripeMap->numStripeUnitsAccessed : 0);
- nNodes = 5 + nRudNodes + nRrdNodes; /* lock, unlock, xor, Rp, Rud,
- * Rrd */
blockNode = rf_AllocDAGNode();
blockNode->list_next = dag_h->nodes;
Home |
Main Index |
Thread Index |
Old Index