]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Remove redundant null checks
authorAlex Hung <alex.hung@amd.com>
Fri, 7 Jun 2024 17:20:36 +0000 (11:20 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Jun 2024 16:45:46 +0000 (12:45 -0400)
commit14f293e044b1ab392e6c9989bb1bc93ce1aa9ca7
treef6475d29c04ee98e5518625fd403630219f88fd6
parent9e6da7b70be822570612da9a65cf5b23f71bcc06
drm/amd/display: Remove redundant null checks

The null checks are redundant as they were already dereferenced
previously, as reported by Coverity; therefore the null checks
are removed.

This fixes 7 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/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c