From: Alex Deucher <alexdeucher@gmail.com>
To: Tim Huang <Tim.Huang@amd.com>
Cc: amd-gfx@lists.freedesktop.org, Alexander.Deucher@amd.com,
christian.koenig@amd.com
Subject: Re: [PATCH 3/3] drm/amdgpu: fix uninitialized variable warning for jpeg_v4
Date: Mon, 6 May 2024 11:13:49 -0400 [thread overview]
Message-ID: <CADnq5_MGr-R6KUo=gT7ysBeg8T9sXHZipDpwtYsGpqw5n2ocmw@mail.gmail.com> (raw)
In-Reply-To: <20240506061207.2017901-3-Tim.Huang@amd.com>
On Mon, May 6, 2024 at 2:32 AM Tim Huang <Tim.Huang@amd.com> wrote:
>
> Clear warning that using uninitialized variable r.
>
> Signed-off-by: Tim Huang <Tim.Huang@amd.com>
Series is:
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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) {
> --
> 2.39.2
>
prev parent reply other threads:[~2024-05-06 15:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-06 6:12 [PATCH 1/3] drm/amdgpu: fix uninitialized variable warning for sdma_v7 Tim Huang
2024-05-06 6:12 ` [PATCH 2/3] drm/amdgpu: fix uninitialized variable warning for amdgpu_xgmi Tim Huang
2024-05-06 6:12 ` [PATCH 3/3] drm/amdgpu: fix uninitialized variable warning for jpeg_v4 Tim Huang
2024-05-06 15:13 ` Alex Deucher [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADnq5_MGr-R6KUo=gT7ysBeg8T9sXHZipDpwtYsGpqw5n2ocmw@mail.gmail.com' \
--to=alexdeucher@gmail.com \
--cc=Alexander.Deucher@amd.com \
--cc=Tim.Huang@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).