OSDN Git Service

drm/amd/display: cleanup the code a bit
authorBernard Zhao <bernard@vivo.com>
Tue, 16 Nov 2021 01:34:35 +0000 (17:34 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Nov 2021 19:45:03 +0000 (14:45 -0500)
commit24adfaffd5adecceb0a2608d5ec2e47756b8a671
tree99cf3d7d98bcf4c954df9872ff2db6243943625a
parent13d20aabd6ef501229ac002493c6f237482c47de
drm/amd/display: cleanup the code a bit

In function dc_sink_destruct, kfree will check pointer, no need
to check again.
This change is to cleanup the code a bit.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Bernard Zhao <bernard@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_sink.c