Browse Source

fix(plat/mediatek/mt8195): fix coverity fail

Add break to correct the driver flow.

Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Change-Id: Ie20f402d543fbf90172671e007fad30d5dc2ab10
pull/1981/head
Rex-BC Chen 3 years ago
parent
commit
85e4d14df1
  1. 4
      plat/mediatek/mt8195/drivers/spm/mt_spm_vcorefs.c

4
plat/mediatek/mt8195/drivers/spm/mt_spm_vcorefs.c

@ -465,13 +465,17 @@ int spm_vcorefs_get_vcore(unsigned int gear)
switch (gear) {
case 3:
ret_val = vcore_opp_0_uv;
break;
case 2:
ret_val = vcore_opp_1_uv;
break;
case 1:
ret_val = vcore_opp_2_uv;
break;
case 0:
default:
ret_val = vcore_opp_3_uv;
break;
}
return ret_val;
}

Loading…
Cancel
Save