diff options
| author | fvdl <fvdl@NetBSD.org> | 2000-12-04 11:35:46 +0000 |
|---|---|---|
| committer | fvdl <fvdl@NetBSD.org> | 2000-12-04 11:35:46 +0000 |
| commit | b6d9ce390e92b2bee98a095c3d1d38152e6812a5 (patch) | |
| tree | bba60a3efa7a14b818477247b60f6837020be854 /sys/dev/raidframe | |
| parent | 7fee705236f9f521fb161e0c3b43f0d9378a3b2d (diff) | |
Comment out 2 cases of unitialized variable use (only used when
debugging is switched on, though).
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_sstf.c | 4 | ||||
| -rw-r--r-- | sys/dev/raidframe/rf_stripelocks.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_sstf.c b/sys/dev/raidframe/rf_sstf.c index 7c66cd3682c..d1c7e8d34b5 100644 --- a/sys/dev/raidframe/rf_sstf.c +++ b/sys/dev/raidframe/rf_sstf.c @@ -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 @@ rf_SstfPromote(qptr, parityStripeID, which_ru) 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 @@ rf_SstfPromote(qptr, parityStripeID, which_ru) 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 --git a/sys/dev/raidframe/rf_stripelocks.c b/sys/dev/raidframe/rf_stripelocks.c index 6a2ddd8b6ff..1bfd15e7857 100644 --- a/sys/dev/raidframe/rf_stripelocks.c +++ b/sys/dev/raidframe/rf_stripelocks.c @@ -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 @@ AddToWaitersQueue( 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 { |
