Skip to content

Commit

Permalink
drm/amdgpu: fix uninitialized variable warning for jpeg_v4
Browse files Browse the repository at this point in the history
[ Upstream commit 9e5da94 ]

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]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
Tim Huang authored and gregkh committed Sep 8, 2024
1 parent d32081a commit a914c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a914c14

Please sign in to comment.