Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe PR/51776: David Binderman: Remove unused v...



details:   https://anonhg.NetBSD.org/src/rev/21781e332a80
branches:  trunk
changeset: 820244:21781e332a80
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 04 15:51:41 2017 +0000

description:
PR/51776: David Binderman: Remove unused variable.

diffstat:

 sys/dev/raidframe/rf_reconmap.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (32 lines):

diff -r c8ab97f31137 -r 21781e332a80 sys/dev/raidframe/rf_reconmap.c
--- a/sys/dev/raidframe/rf_reconmap.c   Wed Jan 04 15:50:34 2017 +0000
+++ b/sys/dev/raidframe/rf_reconmap.c   Wed Jan 04 15:51:41 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_reconmap.c,v 1.34 2012/02/20 22:42:05 oster Exp $   */
+/*     $NetBSD: rf_reconmap.c,v 1.35 2017/01/04 15:51:41 christos Exp $        */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -34,7 +34,7 @@
  *************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_reconmap.c,v 1.34 2012/02/20 22:42:05 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_reconmap.c,v 1.35 2017/01/04 15:51:41 christos Exp $");
 
 #include "rf_raid.h"
 #include <sys/time.h>
@@ -324,13 +324,8 @@
 rf_FreeReconMap(RF_ReconMap_t *mapPtr)
 {
        RF_ReconMapListElem_t *p, *q;
-       RF_ReconUnitCount_t numRUs;
        RF_ReconUnitNum_t i;
 
-       numRUs = mapPtr->sectorsInDisk / mapPtr->sectorsPerReconUnit;
-       if (mapPtr->sectorsInDisk % mapPtr->sectorsPerReconUnit)
-               numRUs++;
-
        for (i = 0; i < mapPtr->status_size; i++) {
                p = mapPtr->status[i];
                while (p != RU_NOTHING && p != RU_ALL) {



Home | Main Index | Thread Index | Old Index