summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
diff options
context:
space:
mode:
authorAric Cyr <aric.cyr@amd.com>2024-03-12 14:40:06 -0400
committerAlex Deucher <alexander.deucher@amd.com>2024-04-09 22:05:04 -0400
commitaece2094e34e602f37403dda028f464bb41da50c (patch)
tree32530a1beef373b9cf2dca1af915beaff3f30075 /drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
parentcc5209647f213ffabca1528da2f88a589059ac0e (diff)
drm/amd/display: Fix compiler warnings on high compiler warning levels
[why] Enabling higher compiler warning levels results in many issues that can be trivially resolved as well as some potentially critical issues. [how] Fix all compiler warnings found with various compilers and higher warning levels. Primarily, potentially uninitialized variables and unreachable code. Reviewed-by: Leo Li <sunpeng.li@amd.com> Acked-by: Roman Li <roman.li@amd.com> Signed-off-by: Aric Cyr <aric.cyr@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
index d1edac46c9a0..88afb2a30eef 100644
--- a/drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c
@@ -864,8 +864,6 @@ static struct clock_source *find_matching_pll(
default:
return NULL;
}
-
- return NULL;
}
static enum dc_status build_mapped_resource(