staging: xgifb: This patch removes the unnecessary return statement using spatch
authorRahul Krishnan <mrahul.krishnan@gmail.com>
Fri, 23 Dec 2016 09:59:46 +0000 (15:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 15:50:37 +0000 (16:50 +0100)
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>
drivers/staging/xgifb/vb_init.c

index 14af157958cd68b38069ba7718a8a4503d0470ce..591a3c9babf578c9aaa1cb3d5375c2729bb9b397 100644 (file)
@@ -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;
 }