summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/link/protocols/link_hpd.c
diff options
context:
space:
mode:
authorAlex Hung <alex.hung@amd.com>2024-04-15 19:05:34 -0600
committerAlex Deucher <alexander.deucher@amd.com>2024-04-26 17:22:44 -0400
commitba3193fa8fc8910f724b67a523ec67ee24997d3e (patch)
tree2f1931b1053d96e0e97b64f71712d02a31cd3e6c /drivers/gpu/drm/amd/display/dc/link/protocols/link_hpd.c
parentf95bcb041f213a5da3da5fcaf73269bd13dba945 (diff)
drm/amd/display: Fix uninitialized variables in DC
This fixes 49 UNINIT issues reported by Coverity. Reviewed-by: Hersen Wu <hersenxs.wu@amd.com> Acked-by: Wayne Lin <wayne.lin@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/link/protocols/link_hpd.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/link/protocols/link_hpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_hpd.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_hpd.c
index e3d729ab5b9f..caa617883f62 100644
--- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_hpd.c
+++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_hpd.c
@@ -35,7 +35,7 @@
bool link_get_hpd_state(struct dc_link *link)
{
- uint32_t state;
+ uint32_t state = 0;
dal_gpio_lock_pin(link->hpd_gpio);
dal_gpio_get_value(link->hpd_gpio, &state);