Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91c822c3 authored by Rajan Vaja's avatar Rajan Vaja Committed by Alex Deucher
Browse files

drm/amd/pp: Fix uninitialized variable



Initialize variable to 0 before performing logical OR operation.

Reviewed-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Signed-off-by: default avatarRajan Vaja <rajan.vaja@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ce397d21
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;