Browse Source

CKTfndDev(), cleanup usage of impossible error codes

pre-master-46
rlar 13 years ago
parent
commit
8a98c784f6
  1. 3
      src/spicelib/devices/cktcrte.c
  2. 2
      src/spicelib/devices/ind/mutsetup.c

3
src/spicelib/devices/cktcrte.c

@ -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 -------*/

2
src/spicelib/devices/ind/mutsetup.c

@ -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;

Loading…
Cancel
Save