CKTfndDev(), cleanup usage of impossible error codes

This commit is contained in:
rlar 2013-06-30 22:44:50 +02:00
parent 0ab6a6e463
commit 8a98c784f6
2 changed files with 1 additions and 4 deletions

View File

@ -37,8 +37,7 @@ CKTcrtElt(CKTcircuit *ckt, GENmodel *modPtr, GENinstance **inInstPtr, IFuid name
if (inInstPtr)
*inInstPtr = instPtr;
return E_EXISTS;
} else if (error != E_NODEV)
return error;
}
#ifdef TRACE
/*------ SDB debug statement -------*/

View File

@ -44,7 +44,6 @@ MUTsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
}
error = CKTfndDev(ckt, &ktype, (GENinstance **) &(here->MUTind1), here->MUTindName1);
if(error && error!= E_NODEV && error != E_NOMOD) return(error);
if(error) {
IFuid namarray[2];
namarray[0]=here->MUTname;
@ -54,7 +53,6 @@ MUTsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
namarray);
}
error = CKTfndDev(ckt, &ktype, (GENinstance **) &(here->MUTind2), here->MUTindName2);
if(error && error!= E_NODEV && error != E_NOMOD) return(error);
if(error) {
IFuid namarray[2];
namarray[0]=here->MUTname;