Commit 9a3aebc0 authored by Sanjana Sanikommu's avatar Sanjana Sanikommu Committed by Greg Kroah-Hartman

staging: sm750fb: Remove unnecessary parenthesis.

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: default avatarSanjana Sanikommu <sanjana99reddy99@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 135afb2b
...@@ -695,7 +695,7 @@ static int sm750fb_set_drv(struct lynxfb_par *par) ...@@ -695,7 +695,7 @@ static int sm750fb_set_drv(struct lynxfb_par *par)
output->paths = sm750_crt; output->paths = sm750_crt;
crtc->channel = sm750_secondary; crtc->channel = sm750_secondary;
/* not consider of padding stuffs for oScreen,need fix */ /* 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; crtc->vScreen = sm750_dev->pvMem + crtc->oScreen;
} }
break; break;
...@@ -709,7 +709,7 @@ static int sm750fb_set_drv(struct lynxfb_par *par) ...@@ -709,7 +709,7 @@ static int sm750fb_set_drv(struct lynxfb_par *par)
output->paths = sm750_crt; output->paths = sm750_crt;
crtc->channel = sm750_primary; crtc->channel = sm750_primary;
/* not consider of padding stuffs for oScreen,need fix */ /* 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; crtc->vScreen = sm750_dev->pvMem + crtc->oScreen;
} }
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment