staging: sm750fb: Remove unnecessary parenthesis.
authorSanjana Sanikommu <sanjana99reddy99@gmail.com>
Sun, 31 Mar 2019 10:41:42 +0000 (16:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Apr 2019 17:31:11 +0000 (19:31 +0200)
Challenge suggested by coccinelle.
Remove unnecessary parenthesis around the right hand
of the assignment using the below script.

@@
binary operator op = {!=,&&,||,>=,<=,&,|};
expression l, r, t;
@@

(
l = (r op t)
|
l =
-(
r
-)
)

Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c

index e9f10c2..e1a892e 100644 (file)
@@ -695,7 +695,7 @@ static int sm750fb_set_drv(struct lynxfb_par *par)
                        output->paths = sm750_crt;
                        crtc->channel = sm750_secondary;
                        /* not consider of padding stuffs for oScreen,need fix */
-                       crtc->oScreen = (sm750_dev->vidmem_size >> 1);
+                       crtc->oScreen = sm750_dev->vidmem_size >> 1;
                        crtc->vScreen = sm750_dev->pvMem + crtc->oScreen;
                }
                break;
@@ -709,7 +709,7 @@ static int sm750fb_set_drv(struct lynxfb_par *par)
                        output->paths = sm750_crt;
                        crtc->channel = sm750_primary;
                        /* not consider of padding stuffs for oScreen,need fix */
-                       crtc->oScreen = (sm750_dev->vidmem_size >> 1);
+                       crtc->oScreen = sm750_dev->vidmem_size >> 1;
                        crtc->vScreen = sm750_dev->pvMem + crtc->oScreen;
                }
                break;