Re: [PATCH] drm/amd/display: drop unnecessary NULL checks in debugfs

2023-01-04 Thread Hamza Mahfooz
On 12/27/22 12:04, Alexey Kodanev wrote: 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 Ko

[PATCH] drm/amd/display: drop unnecessary NULL checks in debugfs

2022-12-27 Thread Alexey Kodanev
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 --- .../amd/display/amdgpu_dm/amdgp