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: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sanjana Sanikommu 2019-03-31 16:11:42 +05:30 committed by Greg Kroah-Hartman
parent 135afb2b21
commit 9a3aebc02a

View File

@ -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)
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;