Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe Comment out 2 cases of unitialized variabl...



details:   https://anonhg.NetBSD.org/src/rev/7322fce816d8
branches:  trunk
changeset: 500051:7322fce816d8
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Mon Dec 04 11:35:46 2000 +0000

description:
Comment out 2 cases of unitialized variable use (only used when
debugging is switched on, though).

diffstat:

 sys/dev/raidframe/rf_sstf.c        |  4 +++-
 sys/dev/raidframe/rf_stripelocks.c |  4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r 561d6dde3344 -r 7322fce816d8 sys/dev/raidframe/rf_sstf.c
--- a/sys/dev/raidframe/rf_sstf.c       Mon Dec 04 11:24:20 2000 +0000
+++ b/sys/dev/raidframe/rf_sstf.c       Mon Dec 04 11:35:46 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_sstf.c,v 1.4 2000/01/08 23:45:05 oster Exp $        */
+/*     $NetBSD: rf_sstf.c,v 1.5 2000/12/04 11:35:46 fvdl Exp $ */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -633,6 +633,7 @@
        sstfq = (RF_Sstf_t *) qptr;
 
        n = 0;
+#if 0 /* XXX fvdl -- unitialized use of variable 'r' */
        if (rf_sstfDebug || rf_scanDebug || rf_cscanDebug) {
                printf("raid%d: promote %ld %d  queues are %d,%d,%d\n",
                       r->raidPtr->raidid, (long) parityStripeID, 
@@ -641,6 +642,7 @@
                       sstfq->right.qlen,
                       sstfq->lopri.qlen);
        }
+#endif
        for (r = sstfq->lopri.queue; r; r = next) {
                next = r->next;
                if (rf_sstfDebug || rf_scanDebug || rf_cscanDebug) {
diff -r 561d6dde3344 -r 7322fce816d8 sys/dev/raidframe/rf_stripelocks.c
--- a/sys/dev/raidframe/rf_stripelocks.c        Mon Dec 04 11:24:20 2000 +0000
+++ b/sys/dev/raidframe/rf_stripelocks.c        Mon Dec 04 11:35:46 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_stripelocks.c,v 1.5 2000/01/08 23:45:05 oster Exp $ */
+/*     $NetBSD: rf_stripelocks.c,v 1.6 2000/12/04 11:35:46 fvdl Exp $  */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -567,12 +567,14 @@
     RF_StripeLockDesc_t * lockDesc,
     RF_LockReqDesc_t * lockReqDesc)
 {
+#if 0 /* XXX fvdl -- unitialized use of 'tid' */
        int     tid;
 
        if (rf_stripeLockDebug) {
                Dprintf3("[%d] Waiting on lock for stripe %ld table 0x%lx\n", tid, lockDesc->stripeID, (unsigned long) lockTable);
                FLUSH;
        }
+#endif
        if (!lockDesc->waitersH) {
                lockDesc->waitersH = lockDesc->waitersT = lockReqDesc;
        } else {



Home | Main Index | Thread Index | Old Index