From 1d2d5981aa8da2459bdb57685e2d0ef64a4a6789 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 25 Apr 2018 16:55:01 -0500 Subject: [PATCH 4085/4131] drm/amdgpu/powerplay: fix a warning in vega10_populate_vddc_soc_levels Initialize soc_vid to 0. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c index 952c7dd..055c692 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c @@ -1672,7 +1672,7 @@ static void vega10_populate_vddc_soc_levels(struct pp_hwmgr *hwmgr) struct phm_ppt_v2_information *table_info = hwmgr->pptable; struct phm_ppt_v1_voltage_lookup_table *vddc_lookup_table; - uint8_t soc_vid; + uint8_t soc_vid = 0; uint32_t i, max_vddc_level; if (hwmgr->od_enabled) -- 2.7.4