diff options
author | Alexey Kodanev <aleksei.kodanev@bell-sw.com> | 2022-12-27 20:04:15 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-01-05 11:42:21 -0500 |
commit | f8e12e770e8049917f82387033b3cf44bc43b915 (patch) | |
tree | f9ace194dbf13a0b54d745332d94614996ede62a /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | |
parent | 4a1c9a444b5e0f276f43f77e1723088bbedb1687 (diff) | |
download | linux-f8e12e770e8049917f82387033b3cf44bc43b915.tar.gz linux-f8e12e770e8049917f82387033b3cf44bc43b915.tar.bz2 linux-f8e12e770e8049917f82387033b3cf44bc43b915.zip |
drm/amd/display: drop unnecessary NULL checks in debugfs
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: Alexey Kodanev <aleksei.kodanev@bell-sw.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions