From 5a24d6491e57a0e961f72f76ad40c888095fe964 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 19 Apr 2023 10:15:20 +0200 Subject: soc/mediatek/mt8183: Fix set but unused variable This fixes a clang warning. Change-Id: I017ed8601e6ec4c66487e9a6f31e93251515e686 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/74554 Tested-by: build bot (Jenkins) Reviewed-by: Rex-BC Chen Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/mt8183/dramc_pi_calibration_api.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/soc/mediatek/mt8183/dramc_pi_calibration_api.c b/src/soc/mediatek/mt8183/dramc_pi_calibration_api.c index c7728853a1..ab49beed5d 100644 --- a/src/soc/mediatek/mt8183/dramc_pi_calibration_api.c +++ b/src/soc/mediatek/mt8183/dramc_pi_calibration_api.c @@ -2170,7 +2170,7 @@ static u8 dramc_window_perbit_cal(u8 chn, u8 rank, u8 freq_group, u8 vref = 0, vref_begin = 0, vref_end = 1, vref_step = 1, vref_use = 0; u8 vref_scan_enable = 0, small_reg_value = 0xff; s16 dly_begin = 0, dly_end = 0, dly_step = 1; - u32 dummy_rd_bak_engine2 = 0, finish_bit, win_min_max = 0; + u32 dummy_rd_bak_engine2 = 0, win_min_max = 0; static u16 dq_precal_result[DQS_NUMBER]; struct vref_perbit_dly vref_dly; struct win_perbit_dly win_perbit[DQ_DATA_WIDTH]; @@ -2240,7 +2240,6 @@ static u8 dramc_window_perbit_cal(u8 chn, u8 rank, u8 freq_group, vref_dly.max_win_sum = 0; for (vref = vref_begin; vref < vref_end; vref += vref_step) { small_reg_value = 0xff; - finish_bit = 0; if (type == TX_WIN_DQ_ONLY) vref_use = vref | (vref_range << 6); else -- cgit v1.2.3