mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 13:56:58 +07:00
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>
This commit is contained in:
parent
ce397d215c
commit
91c822c330
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user