aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
diff options
context:
space:
mode:
authorHamza Mahfooz <[email protected]>2023-05-17 17:31:45 +0000
committerAlex Deucher <[email protected]>2023-06-09 14:38:37 +0000
commit48dd83c0fb6c68742f7fefca907036942dd358be (patch)
tree822c3f128b4e8cc23d1805e5b7d5d29b550b10ce /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
parentdrm/amdgpu: fix S3 issue if MQD in VRAM (diff)
downloadkernel-48dd83c0fb6c68742f7fefca907036942dd358be.tar.gz
kernel-48dd83c0fb6c68742f7fefca907036942dd358be.zip
drm/amd/display: drop redundant memset() in get_available_dsc_slices()
get_available_dsc_slices() returns the number of indices set, and all of the users of get_available_dsc_slices() don't cross the returned bound when iterating over available_slices[]. So, the memset() in get_available_dsc_slices() is redundant and can be dropped. Fixes: 97bda0322b8a ("drm/amd/display: Add DSC support for Navi (v2)") Reported-by: Christophe JAILLET <[email protected]> Reviewed-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c')
0 files changed, 0 insertions, 0 deletions