prevent fallthrough by missing return

This commit is contained in:
dwarning 2018-10-26 14:28:43 +02:00 committed by Holger Vogt
parent 740987382b
commit 5459404c47
1 changed files with 6 additions and 3 deletions

View File

@ -32,6 +32,7 @@ HFET2ask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value,
case HFET2_WIDTH:
value->rValue = here->HFET2width;
value->rValue *= here->HFET2m;
return (OK);
case HFET2_IC_VDS:
value->rValue = here->HFET2icVDS;
return (OK);
@ -57,9 +58,11 @@ HFET2ask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value,
value->iValue = here->HFET2sourcePrimeNode;
return (OK);
case HFET2_TEMP:
value->rValue = here->HFET2temp - CONSTCtoK;
case HFET2_DTEMP:
value->rValue = here->HFET2dtemp;
value->rValue = here->HFET2temp - CONSTCtoK;
return (OK);
case HFET2_DTEMP:
value->rValue = here->HFET2dtemp;
return (OK);
case HFET2_VGS:
value->rValue = *(ckt->CKTstate0 + here->HFET2vgs);
return (OK);