]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Use _free() macro for amdgpu_dm_update_connector_after_detect()
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 18 Feb 2025 04:58:38 +0000 (22:58 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Mar 2025 15:42:18 +0000 (10:42 -0500)
commit981a47429e875693e24da8f7bdc3345e935e32dc
tree3b1cecee195eaa9200ced07fd2e14f165e0295f8
parentaca9ec9b050c0900c3657ea4aba63d6d95073b22
drm/amd/display: Use _free() macro for amdgpu_dm_update_connector_after_detect()

By using a _free() macro multiple duplicated snippets of code to free
the sink can be dropped. The sink will be released when leaving scope.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c