INPparseNumMod(), #8/14, move the 'default:' body out of the 'switch'

this body is inevitable, as there is no other break out of the 'switch'
This commit is contained in:
rlar 2016-07-10 17:24:05 +02:00
parent 1a9bcf6b33
commit 1483e2df9a
1 changed files with 3 additions and 2 deletions

View File

@ -381,6 +381,9 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess
default:
lastType = cardType;
// cardType is not used downwards from here
break;
}
if (lastType == E_MISSING) {
/* new command card */
if (cardName) FREE(cardName); /* get rid of old card name */
@ -452,8 +455,6 @@ INPparseNumMod( CKTcircuit* ckt, INPmodel *model, INPtables *tab, char **errMess
FREE(parm);
}
}
break;
}
}
*errMessage = err;
return( 0 );