mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-27 01:11:31 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue