summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajan Vaja <rajan.vaja@gmail.com>2018-06-18 13:01:02 +0530
committerAlex Deucher <alexander.deucher@amd.com>2018-06-19 12:42:50 -0500
commit91c822c33066b7c4f8cc47d7532f47e3bb89979b (patch)
tree6fd91e8f0c1955f29d96476d49980c97d7a0c731
parentce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff)
downloadop-kernel-dev-91c822c33066b7c4f8cc47d7532f47e3bb89979b.zip
op-kernel-dev-91c822c33066b7c4f8cc47d7532f47e3bb89979b.tar.gz
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>
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
index dbe4b1f..2236487 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
@@ -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;
OpenPOWER on IntegriCloud