drm/amd/amdgpu : Remove unused variable
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Tue, 17 May 2016 09:42:47 +0000 (15:12 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 May 2016 13:22:23 +0000 (09:22 -0400)
Remove unused variable 'ret', and directly return 0.

Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/tonga_ih.c

index f036af9..c920558 100644 (file)
@@ -99,7 +99,6 @@ static void tonga_ih_disable_interrupts(struct amdgpu_device *adev)
  */
 static int tonga_ih_irq_init(struct amdgpu_device *adev)
 {
-       int ret = 0;
        int rb_bufsz;
        u32 interrupt_cntl, ih_rb_cntl, ih_doorbell_rtpr;
        u64 wptr_off;
@@ -165,7 +164,7 @@ static int tonga_ih_irq_init(struct amdgpu_device *adev)
        /* enable interrupts */
        tonga_ih_enable_interrupts(adev);
 
-       return ret;
+       return 0;
 }
 
 /**