linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] drm/amd/amdgpu : Remove unused variable
@ 2016-05-17  9:42 Muhammad Falak R Wani
  2016-05-17  9:42 ` [PATCH 2/5] drm/amd/amdgpu/cz_dpm: " Muhammad Falak R Wani
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Muhammad Falak R Wani @ 2016-05-17  9:42 UTC (permalink / raw)
  To: David Airlie
  Cc: Alex Deucher, Christian König, Jammy Zhou, yanyang1,
	Dave Airlie, Tom St Denis, dri-devel, linux-kernel

Remove unused variable 'ret', and directly return 0.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
---
 drivers/gpu/drm/amd/amdgpu/cik_ih.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/cik_ih.c b/drivers/gpu/drm/amd/amdgpu/cik_ih.c
index f2f14fe..e78c9bd 100644
--- a/drivers/gpu/drm/amd/amdgpu/cik_ih.c
+++ b/drivers/gpu/drm/amd/amdgpu/cik_ih.c
@@ -103,7 +103,6 @@ static void cik_ih_disable_interrupts(struct amdgpu_device *adev)
  */
 static int cik_ih_irq_init(struct amdgpu_device *adev)
 {
-	int ret = 0;
 	int rb_bufsz;
 	u32 interrupt_cntl, ih_cntl, ih_rb_cntl;
 	u64 wptr_off;
@@ -156,7 +155,7 @@ static int cik_ih_irq_init(struct amdgpu_device *adev)
 	/* enable irqs */
 	cik_ih_enable_interrupts(adev);
 
-	return ret;
+	return 0;
 }
 
 /**
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-05-18  0:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-17  9:42 [PATCH 1/5] drm/amd/amdgpu : Remove unused variable Muhammad Falak R Wani
2016-05-17  9:42 ` [PATCH 2/5] drm/amd/amdgpu/cz_dpm: " Muhammad Falak R Wani
2016-05-17  9:42 ` [PATCH 3/5] drm/amd/amdgpu : " Muhammad Falak R Wani
2016-05-17  9:42 ` [PATCH 4/5] " Muhammad Falak R Wani
2016-05-17  9:42 ` [PATCH 5/5] " Muhammad Falak R Wani
2016-05-18  0:17   ` Zhang, Jerry
2016-05-17 20:37 ` [PATCH 1/5] " Alex Deucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).