mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
drm/amd/display: Silence type mismatch warning
[Why&How] Resolve type mismatch warnings by ensuring loop counters and compared values use matching unsigned types (size_t or int) in array iteration. Reviewed-by: Aric Cyr <aric.cyr@amd.com> Signed-off-by: Gaghik Khachatrian <gaghik.khachatrian@amd.com> Signed-off-by: Ivan Lipski <ivan.lipski@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
cf1b9cbb59
commit
44081e86fc
|
|
@ -3064,7 +3064,7 @@ struct surface_update_descriptor dc_check_update_surfaces_for_stream(
|
|||
{
|
||||
if (stream_update)
|
||||
stream_update->stream->update_flags.raw = 0;
|
||||
for (size_t i = 0; i < surface_count; i++)
|
||||
for (int i = 0; i < surface_count; i++)
|
||||
updates[i].surface->update_flags.raw = 0;
|
||||
|
||||
return check_update_surfaces_for_stream(check_config, updates, surface_count, stream_update);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user