diff options
author | Muhammad Falak R Wani <falakreyaz@gmail.com> | 2016-05-17 05:42:45 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-18 09:22:12 -0400 |
commit | 0e2b854ed4ce764e7de781901b49aedd3f7a3dfa (patch) | |
tree | 7793f69c27bac6d99014d48b3104705c5e04d821 | |
parent | d05f2c7aeb5ec6ef6066992517d4a9af40729913 (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>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/cz_ih.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/cz_ih.c b/drivers/gpu/drm/amd/amdgpu/cz_ih.c index 863cb16f6126..3d23a70b6432 100644 --- a/drivers/gpu/drm/amd/amdgpu/cz_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/cz_ih.c | |||
@@ -103,7 +103,6 @@ static void cz_ih_disable_interrupts(struct amdgpu_device *adev) | |||
103 | */ | 103 | */ |
104 | static int cz_ih_irq_init(struct amdgpu_device *adev) | 104 | static int cz_ih_irq_init(struct amdgpu_device *adev) |
105 | { | 105 | { |
106 | int ret = 0; | ||
107 | int rb_bufsz; | 106 | int rb_bufsz; |
108 | u32 interrupt_cntl, ih_cntl, ih_rb_cntl; | 107 | u32 interrupt_cntl, ih_cntl, ih_rb_cntl; |
109 | u64 wptr_off; | 108 | u64 wptr_off; |
@@ -157,7 +156,7 @@ static int cz_ih_irq_init(struct amdgpu_device *adev) | |||
157 | /* enable interrupts */ | 156 | /* enable interrupts */ |
158 | cz_ih_enable_interrupts(adev); | 157 | cz_ih_enable_interrupts(adev); |
159 | 158 | ||
160 | return ret; | 159 | return 0; |
161 | } | 160 | } |
162 | 161 | ||
163 | /** | 162 | /** |