diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2023-05-08 23:10:28 +0200 |
---|---|---|
committer | Elyes Haouas <ehaouas@noos.fr> | 2023-05-12 16:37:13 +0000 |
commit | ed59e972f03bdfc618c5beffed9ceda2c8dc2f84 (patch) | |
tree | 9f187fdcca17895d2aac18ef6585555766f6cfb1 | |
parent | eabae5a6812ad1ac2c6bf8f3b86f7d734346d147 (diff) |
soc/mediatek/mt8183: Fix set but unused variables
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: I1c995d942fa25a9268fbf716034335937df57714
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75036
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
-rw-r--r-- | src/soc/mediatek/mt8183/dramc_pi_calibration_api.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/soc/mediatek/mt8183/dramc_pi_calibration_api.c b/src/soc/mediatek/mt8183/dramc_pi_calibration_api.c index ab49beed5d..39a1dd4340 100644 --- a/src/soc/mediatek/mt8183/dramc_pi_calibration_api.c +++ b/src/soc/mediatek/mt8183/dramc_pi_calibration_api.c @@ -1824,7 +1824,6 @@ static void dramc_set_tx_best_dly_factor(u8 chn, u8 rank_start, u8 type, { u32 dq_large = 0, dq_large_oen = 0, dq_small = 0, dq_small_oen = 0, adjust_center = 1; u32 dqm_large = 0, dqm_large_oen = 0, dqm_small = 0, dqm_small_oen = 0; - u16 dq_oen[DQS_NUMBER] = {0}, dqm_oen[DQS_NUMBER] = {0}; struct tx_dly_tune dqdly_tune[DQS_NUMBER] = {0}; struct tx_dly_tune dqmdly_tune[DQS_NUMBER] = {0}; @@ -1843,12 +1842,6 @@ static void dramc_set_tx_best_dly_factor(u8 chn, u8 rank_start, u8 type, dqm_large_oen += dqmdly_tune[i].coarse_tune_large_oen << (i * 4); dqm_small += dqmdly_tune[i].coarse_tune_small << (i * 4); dqm_small_oen += dqmdly_tune[i].coarse_tune_small_oen << (i * 4); - - dq_oen[i] = (dqdly_tune[i].coarse_tune_large_oen << 3) + - (dqdly_tune[i].coarse_tune_small_oen << 5) + dqdly_tune[i].fine_tune; - dqm_oen[i] = (dqmdly_tune[i].coarse_tune_large_oen << 3) + - (dqmdly_tune[i].coarse_tune_small_oen << 5) + - dqmdly_tune[i].fine_tune; } for (size_t rank = rank_start; rank < RANK_MAX; rank++) { |