Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Tom Rix and committed by
Alex Deucher
94344e62 1fa8d710

-4
-4
drivers/gpu/drm/amd/display/modules/freesync/freesync.c
··· 1137 1137 1138 1138 if (in_out_vrr->supported && 1139 1139 in_out_vrr->state == VRR_STATE_ACTIVE_VARIABLE) { 1140 - unsigned int oldest_index = plane->time.index + 1; 1141 - 1142 - if (oldest_index >= DC_PLANE_UPDATE_TIMES_MAX) 1143 - oldest_index = 0; 1144 1140 1145 1141 last_render_time_in_us = curr_time_stamp_in_us - 1146 1142 plane->time.prev_update_time_in_us;