drm/amd/display: Add null pointer guards where needed
authorJosip Pavic <josip.pavic@amd.com>
Mon, 11 Dec 2023 22:50:19 +0000 (17:50 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jan 2024 15:31:36 +0000 (10:31 -0500)
commitca1ecae145b20b11ff49062afe6f0bf6707bc244
treedab013b3dcafb4d05954c161f6f6dc6b5b38a3cc
parent394e850f1ad73c594bf0296c2f601c71517acfdd
drm/amd/display: Add null pointer guards where needed

[Why]
Some functions whose output is typically checked for null are not being
checked for null at several call sites, causing some static analysis
tools to throw an error.

[How]
Add null pointer guards around functions that typically have them at
other call sites.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Sung Lee <sung.lee@amd.com>
Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Josip Pavic <josip.pavic@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
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/core/dc_stream.c