]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteacfde269ba3487f080c40c1283c7ff3268f3314
tree99cf3d7d98bcf4c954df9872ff2db6243943625a
parent2ac044cc4c7ec4418cc2e47c208c851e88e2b237
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