drm/amd/display: drop redundant memset() in get_available_dsc_slices()
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Wed, 17 May 2023 17:31:45 +0000 (13:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:38:37 +0000 (10:38 -0400)
commit48dd83c0fb6c68742f7fefca907036942dd358be
tree822c3f128b4e8cc23d1805e5b7d5d29b550b10ce
parente602157ec089240861cd641ee2c7c64eeaec09bf
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 <christophe.jaillet@wanadoo.fr>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c