提交 91c822c3 编写于 作者: R Rajan Vaja 提交者: Alex Deucher

drm/amd/pp: Fix uninitialized variable

Initialize variable to 0 before performing logical OR operation.
Reviewed-by: NRex Zhu <Rex.Zhu@amd.com>
Signed-off-by: NRajan Vaja <rajan.vaja@gmail.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 ce397d21
...@@ -1090,7 +1090,7 @@ static int vega10_disable_se_edc_config(struct pp_hwmgr *hwmgr) ...@@ -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) static int vega10_enable_psm_gc_edc_config(struct pp_hwmgr *hwmgr)
{ {
struct amdgpu_device *adev = hwmgr->adev; struct amdgpu_device *adev = hwmgr->adev;
int result; int result = 0;
uint32_t num_se = 0; uint32_t num_se = 0;
uint32_t count, data; uint32_t count, data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册