]> www.infradead.org Git - users/hch/misc.git/commit
drm/amd/display: Drop unnecessary ret variable for enable_assr()
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 28 Feb 2025 19:32:57 +0000 (13:32 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Mar 2025 17:35:49 +0000 (13:35 -0400)
commit272385483e0b1cadfeae03548fb8798d178f13d9
tree69b4b651d78df93cc16710b8300b7a626c73ad6a
parent6b675ab8efbf2bcee25be29e865455c56e246401
drm/amd/display: Drop unnecessary ret variable for enable_assr()

[Why]
enable_assr() has a res variable that only is changed in one block with
no cleanup necessary.

[How]
Remove variable and return early from failure cases.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@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_hdcp.c