Commit 0e2b854e authored by Muhammad Falak R Wani's avatar Muhammad Falak R Wani Committed by Alex Deucher

drm/amd/amdgpu : Remove unused variable

Remove unused variable 'ret', and directly return 0.
Reviewed-by: default avatarJunwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: default avatarMuhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d05f2c7a
...@@ -103,7 +103,6 @@ static void cz_ih_disable_interrupts(struct amdgpu_device *adev) ...@@ -103,7 +103,6 @@ static void cz_ih_disable_interrupts(struct amdgpu_device *adev)
*/ */
static int cz_ih_irq_init(struct amdgpu_device *adev) static int cz_ih_irq_init(struct amdgpu_device *adev)
{ {
int ret = 0;
int rb_bufsz; int rb_bufsz;
u32 interrupt_cntl, ih_cntl, ih_rb_cntl; u32 interrupt_cntl, ih_cntl, ih_rb_cntl;
u64 wptr_off; u64 wptr_off;
...@@ -157,7 +156,7 @@ static int cz_ih_irq_init(struct amdgpu_device *adev) ...@@ -157,7 +156,7 @@ static int cz_ih_irq_init(struct amdgpu_device *adev)
/* enable interrupts */ /* enable interrupts */
cz_ih_enable_interrupts(adev); cz_ih_enable_interrupts(adev);
return ret; return 0;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment