Commit ed82dc58 authored by Alexey Kodanev's avatar Alexey Kodanev Committed by Greg Kroah-Hartman
Browse files

drm/amd/display: drop unnecessary NULL checks in debugfs



[ Upstream commit f8e12e77 ]

pipe_ctx pointer cannot be NULL when getting the address of
an element of the pipe_ctx array. Moreover, the MAX_PIPES is
defined as 6, so pipe_ctx is not NULL after the loop either.

Detected using the static analysis tool - Svace.

Signed-off-by: default avatarAlexey Kodanev <aleksei.kodanev@bell-sw.com>
Signed-off-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Stable-dep-of: 892b41b1 ("drm/amd/display: Fix incorrect DSC instance for MST")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b6621895
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment