From: Muhammad Falak R Wani Date: Tue, 17 May 2016 09:42:47 +0000 (+0530) Subject: drm/amd/amdgpu : Remove unused variable X-Git-Tag: microblaze-4.10-rc1~1026^2~1^2~11 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=2f46b2a5c74c35f785c10fe910621662e3188682;p=linux-2.6-microblaze.git drm/amd/amdgpu : Remove unused variable Remove unused variable 'ret', and directly return 0. Reviewed-by: Junwei Zhang Signed-off-by: Muhammad Falak R Wani Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c index f036af937fbc..c92055805a45 100644 --- a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c @@ -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; } /**