Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1402235
| From | Muhammad Falak R Wani <falakreyaz@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 5/5] drm/amd/amdgpu : Remove unused variable |
| Date | 2016-05-17 11:50 +0200 |
| Message-ID | <rzJNw-2Rf-31@gated-at.bofh.it> (permalink) |
| References | <rzJNv-2Rf-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Remove unused variable 'ret', and directly return 0.
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
---
drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
index 55cdab8..cba951a 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;
}
/**
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/5] drm/amd/amdgpu : Remove unused variable Muhammad Falak R Wani <falakreyaz@gmail.com> - 2016-05-17 11:50 +0200
[PATCH 5/5] drm/amd/amdgpu : Remove unused variable Muhammad Falak R Wani <falakreyaz@gmail.com> - 2016-05-17 11:50 +0200
RE: [PATCH 5/5] drm/amd/amdgpu : Remove unused variable "Zhang, Jerry" <Jerry.Zhang@amd.com> - 2016-05-18 02:40 +0200
Re: [PATCH 1/5] drm/amd/amdgpu : Remove unused variable Alex Deucher <alexdeucher@gmail.com> - 2016-05-17 22:40 +0200
csiph-web