1
0
Fork 0

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>
hifive-unleashed-5.1
Rajan Vaja 2018-06-18 13:01:02 +05:30 committed by Alex Deucher
parent ce397d215c
commit 91c822c330
1 changed files with 1 additions and 1 deletions

View File

@ -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;