<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Applied. Thanks.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Best Regards</p>
<p style="margin-top:0;margin-bottom:0">Rex<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> rajan.vaja@gmail.com <rajan.vaja@gmail.com><br>
<b>Sent:</b> Monday, June 18, 2018 3:31 PM<br>
<b>To:</b> Deucher, Alexander; Koenig, Christian; Zhou, David(ChunMing); Zhu, Rex; StDenis, Tom<br>
<b>Cc:</b> amd-gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org; linux-kernel@vger.kernel.org; Rajan Vaja<br>
<b>Subject:</b> [PATCH] drm/amd/pp: Fix uninitialized variable</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">From: Rajan Vaja <rajan.vaja@gmail.com><br>
<br>
Initialize variable to 0 before performing logical OR operation.<br>
<br>
Signed-off-by: Rajan Vaja <rajan.vaja@gmail.com><br>
---<br>
 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c<br>
index a9efd855..bde01d4 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c<br>
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c<br>
@@ -1090,7 +1090,7 @@ static int vega10_disable_se_edc_config(struct pp_hwmgr *hwmgr)<br>
 static int vega10_enable_psm_gc_edc_config(struct pp_hwmgr *hwmgr)<br>
 {<br>
         struct amdgpu_device *adev = hwmgr->adev;<br>
-       int result;<br>
+       int result = 0;<br>
         uint32_t num_se = 0;<br>
         uint32_t count, data;<br>
 <br>
-- <br>
2.7.4<br>
<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>