projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
329cec8
)
drm/amdgpu: fix uninitialized variable warning for jpeg_v4
author
Tim Huang
<Tim.Huang@amd.com>
Mon, 6 May 2024 05:57:03 +0000
(13:57 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 8 May 2024 19:17:05 +0000
(15:17 -0400)
Clear warning that using uninitialized variable r.
Signed-off-by: Tim Huang <Tim.Huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c
patch
|
blob
|
history
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
da6bb90
..
4c8f977
100644
(file)
--- 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) {