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 variables



details:   https://anonhg.NetBSD.org/src/rev/10a3b1284694
branches:  trunk
changeset: 790029:10a3b1284694
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 15 12:23:06 2013 +0000

description:
Remove unused variables

diffstat:

 sys/dev/raidframe/rf_dagffrd.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 51dc58148be5 -r 10a3b1284694 sys/dev/raidframe/rf_dagffrd.c
--- a/sys/dev/raidframe/rf_dagffrd.c    Sun Sep 15 12:20:28 2013 +0000
+++ b/sys/dev/raidframe/rf_dagffrd.c    Sun Sep 15 12:23:06 2013 +0000
@@ -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_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 @@
          * 1 terminator node
          */
        RF_ASSERT(n > 0);
-       totalNumNodes = n + 3;
 
        for (i = 0; i < n; i++) {
                tmpNode = rf_AllocDAGNode();
@@ -326,7 +325,7 @@
        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 @@
          * 1 terminator node
          */
        RF_ASSERT(n > 0);
-       totalNumNodes = n + 3;
 
        for (i = 0; i < n; i++) {
                tmpNode = rf_AllocDAGNode();



Home | Main Index | Thread Index | Old Index