summaryrefslogtreecommitdiff
path: root/drivers/staging/xgifb
diff options
context:
space:
mode:
authorRahul Krishnan <mrahul.krishnan@gmail.com>2016-12-23 15:29:46 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-03 16:50:37 +0100
commit1f8bb58ec522150d2ac816e809279ca5d21ed93b (patch)
tree2810bf5e5100c5e337c6d352ffd4721d6ab59459 /drivers/staging/xgifb
parentfc800c590985ca16d6d4673c0723cbb870bd9a74 (diff)
staging: xgifb: This patch removes the unnecessary return statement using spatch
This patch removes unnecessary return statement using spatch tool Signed-off-by: Rahul Krishnan <mrahul.krishnan@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/xgifb')
-rw-r--r--drivers/staging/xgifb/vb_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/xgifb/vb_init.c b/drivers/staging/xgifb/vb_init.c
index 14af157958cd..591a3c9babf5 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;
}