Re: [PATCH] drm/amdgpu/sdma5: silence a warning

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

 




On 3/31/20 4:32 PM, Alex Deucher wrote:
This isn't actually a valid warning, but initialize the variable
to silence the compiler.

Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>


Acked-by: Nirmoy Das <nirmoy.das@xxxxxxx>


---
  drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
index f485b97ed760..06411fd099ff 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
@@ -554,7 +554,7 @@ static void sdma_v5_0_rlc_stop(struct amdgpu_device *adev)
   */
  static void sdma_v5_0_ctx_switch_enable(struct amdgpu_device *adev, bool enable)
  {
-	u32 f32_cntl, phase_quantum = 0;
+	u32 f32_cntl = 0, phase_quantum = 0;
  	int i;
if (amdgpu_sdma_phase_quantum) {
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx



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

  Powered by Linux