summaryrefslogtreecommitdiff
path: root/src/vendorcode
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-04-19 10:11:33 +0200
committerLean Sheng Tan <sheng.tan@9elements.com>2023-05-13 17:19:05 +0000
commit8d7eff32afb9b563eef03ec537f0568c2c3e411e (patch)
treec4e51ac8f5140c7f04d4abda503e356b9d0b8935 /src/vendorcode
parent3c2fa3519cb69debbb0b99f17314c35a983a9679 (diff)
vendorcode/mediatek/mt8195: Fix superfluous brackets
Clang warns about this. Change-Id: I4310737bd63728d3c592d0f4d1030bc352afa575 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74550 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/vendorcode')
-rw-r--r--src/vendorcode/mediatek/mt8195/dramc/dramc_pi_calibration_api.c2
-rw-r--r--src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_calibration_api.c b/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_calibration_api.c
index 1a06e1e7a0..6bd1b20928 100644
--- a/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_calibration_api.c
+++ b/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_calibration_api.c
@@ -6512,7 +6512,7 @@ DRAM_STATUS_T DramcRxWindowPerbitCal(DRAMC_CTX_T *p,
u2VrefEnd = 0;
u2VrefStep = 1;
- if ((u1UseTestEngine == PATTERN_TEST_ENGINE))
+ if (u1UseTestEngine == PATTERN_TEST_ENGINE)
{
#if (FOR_DV_SIMULATION_USED==0 && SW_CHANGE_FOR_SIMULATION==0)
if ((p->rank==RANK_0) || (p->frequency >= RX_VREF_DUAL_RANK_K_FREQ) || (u1RXEyeScanEnable==1))
diff --git a/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c b/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c
index 311939d1d5..e885424720 100644
--- a/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c
+++ b/src/vendorcode/mediatek/mt8195/dramc/dramc_pi_main.c
@@ -1440,7 +1440,7 @@ static void vCalibration_Flow_LP4(DRAMC_CTX_T *p)
DramcTxWindowPerbitCal(p, TX_DQ_DQS_MOVE_DQ_ONLY, FALSE, AUTOK_OFF);
#if TX_K_DQM_WITH_WDBI
- if ((p->DBI_W_onoff[p->dram_fsp]==DBI_ON))
+ if (p->DBI_W_onoff[p->dram_fsp]==DBI_ON)
{
//mcSHOW_DBG_MSG(("[TX_K_DQM_WITH_WDBI] Step1: K DQM with DBI_ON, and check DQM window spec.\n\n"));