diff options
| author | Muhammad Falak R Wani <falakreyaz@gmail.com> | 2016-05-17 05:42:47 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-18 09:22:23 -0400 |
| commit | 2f46b2a5c74c35f785c10fe910621662e3188682 (patch) | |
| tree | 541e7f1b7a463c0927ae66b0c57292978a3f2c15 /drivers/gpu/drm/amd | |
| parent | a280a42aa351bab5eaf8e253f172487a6785f62e (diff) | |
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>
Diffstat (limited to 'drivers/gpu/drm/amd')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
| 99 | */ | 99 | */ |
| 100 | static int tonga_ih_irq_init(struct amdgpu_device *adev) | 100 | static int tonga_ih_irq_init(struct amdgpu_device *adev) |
| 101 | { | 101 | { |
| 102 | int ret = 0; | ||
| 103 | int rb_bufsz; | 102 | int rb_bufsz; |
| 104 | u32 interrupt_cntl, ih_rb_cntl, ih_doorbell_rtpr; | 103 | u32 interrupt_cntl, ih_rb_cntl, ih_doorbell_rtpr; |
| 105 | u64 wptr_off; | 104 | u64 wptr_off; |
| @@ -165,7 +164,7 @@ static int tonga_ih_irq_init(struct amdgpu_device *adev) | |||
| 165 | /* enable interrupts */ | 164 | /* enable interrupts */ |
| 166 | tonga_ih_enable_interrupts(adev); | 165 | tonga_ih_enable_interrupts(adev); |
| 167 | 166 | ||
| 168 | return ret; | 167 | return 0; |
| 169 | } | 168 | } |
| 170 | 169 | ||
| 171 | /** | 170 | /** |
