commit | 94b891f835a0f5d659b6a9b5de9aaa26b09c190f | [log] [tgz] |
---|---|---|
author | Rex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com> | Fri Sep 17 09:55:21 2021 +0800 |
committer | Rex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com> | Fri Sep 17 09:55:21 2021 +0800 |
tree | 2ef4f5da374401631006927dcf27312ab4f51715 | |
parent | 1b6f31438672ff453ad1609e398ee75b3164a650 [diff] |
fix(plat/mediatek/mt8195): fix coverity fail Add break to correct the driver flow. Change-Id: Ie20f402d543fbf90172671e007fad30d5dc2ab10
diff --git a/plat/mediatek/mt8195/drivers/spm/mt_spm_vcorefs.c b/plat/mediatek/mt8195/drivers/spm/mt_spm_vcorefs.c index 2a9a789..6a85b5c 100644 --- a/plat/mediatek/mt8195/drivers/spm/mt_spm_vcorefs.c +++ b/plat/mediatek/mt8195/drivers/spm/mt_spm_vcorefs.c
@@ -465,13 +465,17 @@ 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; }