aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Huang <[email protected]>2024-05-06 13:57:03 +0800
committerAlex Deucher <[email protected]>2024-05-08 15:17:05 -0400
commit9e5da942594034ec377ba8c0caa9c15e1d26ba08 (patch)
treee011f19491cbad87f7eb65677479251a8412107c
parent329cec8f18fc8bed7570b68b18936724af2f5593 (diff)
drm/amdgpu: fix uninitialized variable warning for jpeg_v4
Clear warning that using uninitialized variable r. Signed-off-by: Tim Huang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c
index da6bb9022b80..4c8f9772437b 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c
@@ -187,7 +187,7 @@ static int jpeg_v4_0_5_hw_init(void *handle)
{
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
struct amdgpu_ring *ring;
- int r, i;
+ int i, r = 0;
// TODO: Enable ring test with DPG support
if (adev->pg_flags & AMD_PG_SUPPORT_JPEG_DPG) {