From 1f8bb58ec522150d2ac816e809279ca5d21ed93b Mon Sep 17 00:00:00 2001 From: Rahul Krishnan Date: Fri, 23 Dec 2016 15:29:46 +0530 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- 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 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; } -- 2.20.1