All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: xgifb: This patch removes the unnecessary return statement using spatch
@ 2016-12-23  9:59 Rahul Krishnan
  0 siblings, 0 replies; only message in thread
From: Rahul Krishnan @ 2016-12-23  9:59 UTC (permalink / raw)
  To: arnaud.patard
  Cc: gregkh, waltfeasel, gs051095, clifton.a.barnes, bhumirks, devel,
	linux-kernel


This patch removes unnecessary return statement using spatch tool

Signed-off-by: Rahul Krishnan <mrahul.krishnan@gmail.com>
---
 drivers/staging/xgifb/vb_init.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/xgifb/vb_init.c b/drivers/staging/xgifb/vb_init.c
index 14af157..591a3c9 100644
--- a/drivers/staging/xgifb/vb_init.c
+++ b/drivers/staging/xgifb/vb_init.c
@@ -579,8 +579,7 @@ static unsigned char XGINew_CheckFrequence(struct vb_device_info *pVBInfo)
 
 	if ((data & 0x10) == 0) {
 		data = xgifb_reg_get(pVBInfo->P3c4, 0x39);
-		data = (data & 0x02) >> 1;
-		return data;
+		return (data & 0x02) >> 1;
 	}
 	return data & 0x01;
 }
-- 
2.7.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-23  9:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-23  9:59 [PATCH] staging: xgifb: This patch removes the unnecessary return statement using spatch Rahul Krishnan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.