]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/amd/amdgpu : Remove unused variable
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Tue, 17 May 2016 09:42:46 +0000 (15:12 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 May 2016 13:22:17 +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/iceland_ih.c

index 39bfc52d0b42150fa085b0073bf8e7088ef3d00d..3b8906ce3511274f302b7f23bbca5dd6d53fb683 100644 (file)
@@ -103,7 +103,6 @@ static void iceland_ih_disable_interrupts(struct amdgpu_device *adev)
  */
 static int iceland_ih_irq_init(struct amdgpu_device *adev)
 {
-       int ret = 0;
        int rb_bufsz;
        u32 interrupt_cntl, ih_cntl, ih_rb_cntl;
        u64 wptr_off;
@@ -157,7 +156,7 @@ static int iceland_ih_irq_init(struct amdgpu_device *adev)
        /* enable interrupts */
        iceland_ih_enable_interrupts(adev);
 
-       return ret;
+       return 0;
 }
 
 /**