Negate a condition, and flip if/else parts. Preparation for left-shifting

the (now) else part.  No real functional change.
This commit is contained in:
oster 2003-12-31 03:29:11 +00:00
parent 00515ece62
commit 824f2ed930
1 changed files with 9 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_reconstruct.c,v 1.60 2003/12/30 21:59:03 oster Exp $ */
/* $NetBSD: rf_reconstruct.c,v 1.61 2003/12/31 03:29:11 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -33,7 +33,7 @@
************************************************************/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.60 2003/12/30 21:59:03 oster Exp $");
__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.61 2003/12/31 03:29:11 oster Exp $");
#include <sys/time.h>
#include <sys/buf.h>
@ -364,7 +364,13 @@ rf_ReconstructInPlace(RF_Raid_t *raidPtr, RF_RowCol_t col)
int ac;
lp = raidPtr->Layout.map;
if (lp->SubmitReconBuffer) {
if (!lp->SubmitReconBuffer) {
RF_ERRORMSG1("RECON: no way to reconstruct failed disk for arch %c\n",
lp->parityConfig);
/* wakeup anyone who might be waiting to do a reconstruct */
RF_SIGNAL_COND(raidPtr->waitForReconCond);
return(EIO);
} else {
/*
* The current infrastructure only supports reconstructing one
* disk at a time for each array.
@ -513,10 +519,6 @@ rf_ReconstructInPlace(RF_Raid_t *raidPtr, RF_RowCol_t col)
raidPtr->reconInProgress--;
RF_UNLOCK_MUTEX(raidPtr->mutex);
} else {
RF_ERRORMSG1("RECON: no way to reconstruct failed disk for arch %c\n",
lp->parityConfig);
rc = EIO;
}
if (!rc) {