drm/amd/display: Remove redundant checks for res_pool->dccg
authorAlex Hung <alex.hung@amd.com>
Thu, 6 Jun 2024 18:38:45 +0000 (12:38 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Jun 2024 16:45:27 +0000 (12:45 -0400)
commit1a664dc0cfdf0942945aa902d0c38f37fcefbb8e
tree0b613d50004d2ab2535d7dfd137b521618e46c6f
parent85fa2287458f17ee124e77f1ec49dcf769869a25
drm/amd/display: Remove redundant checks for res_pool->dccg

The null checks for res_pool->dccg are redundant as it was already
dereferenced previously, as reported by Coverity; therefore the
null checks are removed.

This fixes 6 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/hwss/dcn201/dcn201_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c