From: Rahul Krishnan Date: Fri, 23 Dec 2016 09:59:46 +0000 (+0530) Subject: staging: xgifb: This patch removes the unnecessary return statement using spatch X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1f8bb58ec522150d2ac816e809279ca5d21ed93b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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; }