CKTfndDev(), cleanup usage of `type' argument

This commit is contained in:
rlar 2013-06-30 22:49:12 +02:00
parent 8a98c784f6
commit 7048bf7c15
1 changed files with 3 additions and 3 deletions

View File

@ -29,9 +29,7 @@ CKTcrtElt(CKTcircuit *ckt, GENmodel *modPtr, GENinstance **inInstPtr, IFuid name
if(!modPtr)
return E_NOMOD;
type = modPtr->GENmodType;
error = CKTfndDev(ckt, &type, &instPtr, name);
error = CKTfndDev(ckt, NULL, &instPtr, name);
if (error == OK) {
if (inInstPtr)
@ -39,6 +37,8 @@ CKTcrtElt(CKTcircuit *ckt, GENmodel *modPtr, GENinstance **inInstPtr, IFuid name
return E_EXISTS;
}
type = modPtr->GENmodType;
#ifdef TRACE
/*------ SDB debug statement -------*/
printf("In CKTcrtElt, about to tmalloc new model, type = %d. . . \n", type);