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
This commit is contained in:
Rex-BC Chen 2021-09-17 09:55:21 +08:00
parent d272611770
commit 85e4d14df1
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}