mirror of https://gitee.com/openkylin/linux.git
drm/amd/amdgpu : Remove unused variable
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>
This commit is contained in:
parent
0e2b854ed4
commit
a280a42aa3
drivers/gpu/drm/amd/amdgpu
|
@ -103,7 +103,6 @@ static void iceland_ih_disable_interrupts(struct amdgpu_device *adev)
|
||||||
*/
|
*/
|
||||||
static int iceland_ih_irq_init(struct amdgpu_device *adev)
|
static int iceland_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 iceland_ih_irq_init(struct amdgpu_device *adev)
|
||||||
/* enable interrupts */
|
/* enable interrupts */
|
||||||
iceland_ih_enable_interrupts(adev);
|
iceland_ih_enable_interrupts(adev);
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue