Re: [PATCH 3/3] drm/amdgpu: fix uninitialized variable warning for jpeg_v4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 6, 2024 at 2:32 AM Tim Huang <Tim.Huang@xxxxxxx> wrote:
>
> Clear warning that using uninitialized variable r.
>
> Signed-off-by: Tim Huang <Tim.Huang@xxxxxxx>

Series is:
Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx>

> ---
>  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
>




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux