Re: [PATCH] drm/amdgpu/vcn: fix unitialized variable warnings

2024-04-19 Thread Christian König
Am 18.04.24 um 20:07 schrieb Pierre-Eric Pelloux-Prayer: Init r to 0 to avoid returning an uninitialized value if we never enter the loop. This case should never be hit in practive, but returning 0 doesn't hurt. The same fix is applied to the 4 places using the same pattern. Signed-off-by:

Re: [PATCH] drm/amdgpu/vcn: fix unitialized variable warnings

2024-04-18 Thread Alex Deucher
On Thu, Apr 18, 2024 at 2:22 PM Pierre-Eric Pelloux-Prayer wrote: > > Init r to 0 to avoid returning an uninitialized value if we never > enter the loop. This case should never be hit in practive, but s/practive/practice/ > returning 0 doesn't hurt. s/returning/initializing to/ With that

[PATCH] drm/amdgpu/vcn: fix unitialized variable warnings

2024-04-18 Thread Pierre-Eric Pelloux-Prayer
Init r to 0 to avoid returning an uninitialized value if we never enter the loop. This case should never be hit in practive, but returning 0 doesn't hurt. The same fix is applied to the 4 places using the same pattern. Signed-off-by: Pierre-Eric Pelloux-Prayer ---