From eb973396379fb7c2e13c45fe643da6ea4b341515 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 30 Jun 2013 12:47:50 +0200 Subject: [PATCH] CKTfndDev(), #2/6, cleanup --- src/spicelib/devices/cktfinddev.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/spicelib/devices/cktfinddev.c b/src/spicelib/devices/cktfinddev.c index c37224118..fe870fc1d 100644 --- a/src/spicelib/devices/cktfinddev.c +++ b/src/spicelib/devices/cktfinddev.c @@ -33,7 +33,7 @@ CKTfndDev(CKTcircuit *ckt, int *type, GENinstance **fast, IFuid name, GENmodel * /* already have fast, so nothing much to do just get & set type */ if (type) *type = (*fast)->GENmodPtr->GENmodType; - return(OK); + return OK; } if (modfast) { @@ -67,9 +67,8 @@ CKTfndDev(CKTcircuit *ckt, int *type, GENinstance **fast, IFuid name, GENmodel * *fast = here; return OK; } - if (mods->GENmodName == modname) { + if (mods->GENmodName == modname) return E_NODEV; - } } } return E_NOMOD; @@ -89,9 +88,8 @@ CKTfndDev(CKTcircuit *ckt, int *type, GENinstance **fast, IFuid name, GENmodel * *fast = here; return OK; } - if (mods->GENmodName == modname) { + if (mods->GENmodName == modname) return E_NODEV; - } } } }