diff mbox

drm/amd/pp: Fix uninitialized variable

Message ID CY4PR12MB1687C56D02C99719379909B1FB710@CY4PR12MB1687.namprd12.prod.outlook.com (mailing list archive)
State New, archived
Headers show

Commit Message

Zhu, Rex June 18, 2018, 11:42 a.m. UTC
Applied. Thanks.


Best Regards

Rex
diff mbox

Patch

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
index a9efd855..bde01d4 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
@@ -1090,7 +1090,7 @@  static int vega10_disable_se_edc_config(struct pp_hwmgr *hwmgr)
 static int vega10_enable_psm_gc_edc_config(struct pp_hwmgr *hwmgr)
 {
         struct amdgpu_device *adev = hwmgr->adev;
-       int result;
+       int result = 0;
         uint32_t num_se = 0;
         uint32_t count, data;