devices/asrc, cleanup #1/9, invert `if'
This commit is contained in:
parent
bfe9df8511
commit
df147cd8b8
|
|
@ -46,7 +46,8 @@ ASRCconvTest(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
}
|
}
|
||||||
|
|
||||||
if( here->ASRCtree->IFeval (here->ASRCtree, ckt->CKTgmin, &rhs,
|
if( here->ASRCtree->IFeval (here->ASRCtree, ckt->CKTgmin, &rhs,
|
||||||
asrc_vals,asrc_derivs) == OK){
|
asrc_vals,asrc_derivs) != OK)
|
||||||
|
return(E_BADPARM);
|
||||||
|
|
||||||
prev = here->ASRCprev_value;
|
prev = here->ASRCprev_value;
|
||||||
diff = fabs( prev - rhs);
|
diff = fabs( prev - rhs);
|
||||||
|
|
@ -63,10 +64,6 @@ ASRCconvTest(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
ckt->CKTtroubleElt = (GENinstance *) here;
|
ckt->CKTtroubleElt = (GENinstance *) here;
|
||||||
return(OK);
|
return(OK);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
|
|
||||||
return(E_BADPARM);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return(OK);
|
return(OK);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue