CKTfndDev(), #6/6, cleanup
This commit is contained in:
parent
8a32c75138
commit
0afe0eab8f
|
|
@ -36,14 +36,13 @@ CKTfndDev(CKTcircuit *ckt, int *type, GENinstance **fast, IFuid name, GENmodel *
|
||||||
|
|
||||||
/* we know the model `modfast', but need to find the device instance */
|
/* we know the model `modfast', but need to find the device instance */
|
||||||
if (modfast) {
|
if (modfast) {
|
||||||
mods = modfast;
|
here = find_instance(modfast->GENinstances, name);
|
||||||
here = find_instance(mods->GENinstances, name);
|
|
||||||
if (here) {
|
if (here) {
|
||||||
if (fast)
|
if (fast)
|
||||||
*fast = here;
|
*fast = here;
|
||||||
|
|
||||||
if (type)
|
if (type)
|
||||||
*type = mods->GENmodType;
|
*type = modfast->GENmodType;
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue