]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: remove unnecessary else by CONFIG_DRM_AMD_DC_DCN
authorAlex Hung <alex.hung@amd.com>
Mon, 25 Apr 2022 22:31:49 +0000 (16:31 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 May 2022 21:53:13 +0000 (17:53 -0400)
commit9e204fdf5e8f2e694914fc7adf0b42d0052cc53e
treeed99904fa9a071926c73368070caad2e4a639b50
parent7865f22a5ade9947c0b3dea322de316f3db0bd14
drm/amd/display: remove unnecessary else by CONFIG_DRM_AMD_DC_DCN

[Why & How]
CONFIG_DRM_AMD_DC_DCN is used by pass the compilation failures, but DC
code should be OS-agnostic.

This patch fixes it by removing unnecessasry CONFIG_DRM_AMD_DC_DCN
guards for #if-#else clause.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c