From 0b73d95f13ca7b653b06f97d5ae03975c6e6603a Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 17 Apr 2023 15:00:28 +0200 Subject: [PATCH] Formatting --- src/spicelib/devices/cktinit.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/spicelib/devices/cktinit.c b/src/spicelib/devices/cktinit.c index 7fde41af6..92e83093b 100644 --- a/src/spicelib/devices/cktinit.c +++ b/src/spicelib/devices/cktinit.c @@ -29,16 +29,13 @@ CKTinit(CKTcircuit **ckt) /* new circuit to create */ CKTcircuit *sckt = TMALLOC(CKTcircuit, 1); *ckt = sckt; if (sckt == NULL) - return(E_NOMEM); -/* gtri - begin - dynamically allocate the array of model lists */ -/* CKThead used to be statically sized in CKTdefs.h, but has been changed */ -/* to a ** pointer */ + return(E_NOMEM); + + /* dynamically allocate the array of model lists */ sckt->CKThead = TMALLOC(GENmodel *, DEVmaxnum); - if(sckt->CKThead == NULL) return(E_NOMEM); -/* gtri - end - dynamically allocate the array of model lists */ + if(sckt->CKThead == NULL) + return(E_NOMEM); - - for (i = 0; i < DEVmaxnum; i++) sckt->CKThead[i] = NULL;