summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-04-14 11:08:30 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-04-18 16:28:54 -0400
commit94344e62a9ce8abcf681390f9822a7b075cf98e2 (patch)
treebebf8802c78d30abbed2a84cd53ce33d2addf113 /drivers/gpu/drm/amd/display/modules
parent1fa8d710573f02ae9118bc5f53e7ede09d6920da (diff)
downloadlinux-94344e62a9ce8abcf681390f9822a7b075cf98e2.tar.gz
linux-94344e62a9ce8abcf681390f9822a7b075cf98e2.tar.bz2
linux-94344e62a9ce8abcf681390f9822a7b075cf98e2.zip
drm/amd/display: remove unused variable oldest_index
cpp_check reports drivers/gpu/drm/amd/display/modules/freesync/freesync.c:1143:17: style: Variable 'oldest_index' is assigned a value that is never used. [unreadVariable] oldest_index = 0; ^ This variable is not used so remove. Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules')
-rw-r--r--drivers/gpu/drm/amd/display/modules/freesync/freesync.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
index 5c41a4751db4..5798c0eafa1f 100644
--- a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
+++ b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
@@ -1137,10 +1137,6 @@ void mod_freesync_handle_preflip(struct mod_freesync *mod_freesync,
if (in_out_vrr->supported &&
in_out_vrr->state == VRR_STATE_ACTIVE_VARIABLE) {
- unsigned int oldest_index = plane->time.index + 1;
-
- if (oldest_index >= DC_PLANE_UPDATE_TIMES_MAX)
- oldest_index = 0;
last_render_time_in_us = curr_time_stamp_in_us -
plane->time.prev_update_time_in_us;