Browse Source

drm/amd/pp: Fix uninitialized variable

Initialize variable to 0 before performing logical OR operation.

Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Rajan Vaja <rajan.vaja@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Rajan Vaja 7 years ago
parent
commit
91c822c330
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c

+ 1 - 1
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;