]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Remove redundant null checks
authorAlex Hung <alex.hung@amd.com>
Fri, 7 Jun 2024 01:49:23 +0000 (19:49 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Jun 2024 16:46:21 +0000 (12:46 -0400)
commitdb39d575eee8bfcfed59a370d936e1a1d6398423
tree42ab7a8c069f6c4d174f6840df8279b18fbc99bb
parenta7b38c7852093385d0605aa3c8a2efd6edd1edfd
drm/amd/display: Remove redundant null checks

The null checks for aconnector and aconnector->dc_link and
stream redundant as they were already dereferenced previously
as reported by Coverity; therefore the null checks are removed.

This fixes 4 REVERSE_INULL issues reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c