]> www.infradead.org Git - users/willy/linux.git/commit
drm/amd/display: Remove redundant checks for opp
authorAlex Hung <alex.hung@amd.com>
Fri, 7 Jun 2024 16:59:55 +0000 (10:59 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Jun 2024 16:45:54 +0000 (12:45 -0400)
commit8a1708328c60ebc0f402edb69fb8a5509b3511b3
treea317d434d8557e124d8aaa89beba13401342fb5c
parent14f293e044b1ab392e6c9989bb1bc93ce1aa9ca7
drm/amd/display: Remove redundant checks for opp

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

This fixes 2 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/dcn10/dcn10_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn201/dcn201_hwseq.c