From b91386222ea3f02f55f192820afaef38b5fd3c60 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 11 Apr 2015 21:26:15 +0200 Subject: [PATCH] devices/asrc, cleanup #4/9, unify model cast --- src/spicelib/devices/asrc/asrcset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spicelib/devices/asrc/asrcset.c b/src/spicelib/devices/asrc/asrcset.c index 2ac191324..82c9478fe 100644 --- a/src/spicelib/devices/asrc/asrcset.c +++ b/src/spicelib/devices/asrc/asrcset.c @@ -140,10 +140,10 @@ ASRCunsetup( GENmodel *inModel, CKTcircuit *ckt) { - ASRCmodel *model; + ASRCmodel *model = (ASRCmodel *) inModel; ASRCinstance *here; - for (model = (ASRCmodel *) inModel; model != NULL; + for (; model != NULL; model = model->ASRCnextModel) { for (here = model->ASRCinstances; here != NULL;