]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Cleanup early return in construct_phy
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 13 Nov 2025 16:33:47 +0000 (17:33 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Nov 2025 15:53:16 +0000 (10:53 -0500)
commitdc82e1bb489d6c4a5bbe9dcc8b6390955b8849cd
tree996b267a035653f5080eaefb3a98e06af084156a
parentd46e422f65aefcd027cd22e1c020a288fe99a600
drm/amd/display: Cleanup early return in construct_phy

Match pre-existing patterns in the DC code base.
Instead of returning early from the construct_phy() function,
add a label at the end and use goto to jump there.
Additionally, respect the DC logger and let it log the function
even when it returns early.

Suggested-by: Ray Wu <Ray.Wu@amd.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Link: https://lore.kernel.org/r/20251113163348.137315-4-timur.kristof@gmail.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/link/link_factory.c