diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2023-04-19 10:01:15 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-04-24 13:55:25 +0000 |
commit | 77b590eed1f1205c063e8ec2bef58fdcf91ec803 (patch) | |
tree | 02f5e11e9608882eb5d25301bf7a3165c899d282 /src/soc/mediatek | |
parent | 27af3e6b111f462a71762bd56363d06d73505284 (diff) |
soc/mediatek/dptx.c: Remove set but unused variables
This fixes clang warning about set but unused variables.
Change-Id: I3a3345e33380862d6939b61485f6d1eefa3d1815
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74547
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Diffstat (limited to 'src/soc/mediatek')
-rw-r--r-- | src/soc/mediatek/common/dp/dptx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/soc/mediatek/common/dp/dptx.c b/src/soc/mediatek/common/dp/dptx.c index 08d288acf8..c123f88188 100644 --- a/src/soc/mediatek/common/dp/dptx.c +++ b/src/soc/mediatek/common/dp/dptx.c @@ -445,7 +445,7 @@ static void dptx_set_tu(struct mtk_dp *mtk_dp) { u8 bpp; u16 sram_read_start = DPTX_TBC_BUF_READSTARTADRTHRD; - int tu_size, n_value, f_value, pixclk_mhz; + int tu_size, f_value, pixclk_mhz; bpp = dptx_hal_get_colorbpp(mtk_dp); pixclk_mhz = mtk_dp->edid->mode.pixel_clock / 1000; @@ -453,7 +453,6 @@ static void dptx_set_tu(struct mtk_dp *mtk_dp) (mtk_dp->train_info.linkrate * 27 * mtk_dp->train_info.linklane_count * 8); - n_value = tu_size / 10; f_value = tu_size % 10; printk(BIOS_DEBUG, "TU_size %d, FValue %d\n", tu_size, f_value); @@ -950,7 +949,6 @@ static void dptx_training_changemode(struct mtk_dp *mtk_dp) static int dptx_set_trainingstart(struct mtk_dp *mtk_dp) { - int ret = DPTX_PASS; u8 lanecount; u8 linkrate; u8 buffer; @@ -1006,7 +1004,7 @@ static int dptx_set_trainingstart(struct mtk_dp *mtk_dp) mtk_dp->train_info.eq_done = false; dptx_training_changemode(mtk_dp); - ret = dptx_trainingflow(mtk_dp, linkrate, lanecount); + dptx_trainingflow(mtk_dp, linkrate, lanecount); if (!mtk_dp->train_info.cr_done) { /* CR fail and reduce link capability. */ |