mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 16:06:40 +07:00
staging: sm750fb: Remove unnecessary parentheses
Remove unnecessary parentheses from right side of an assignment. Issue detected by the following Coccinelle semantic patch: @r@ identifier x; expression e1, e2; @@ - x = (e1 << e2); + x = e1 << e2; Signed-off-by: Rehas Sachdeva <aquannie@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f3151e0043
commit
837b655553
@ -322,8 +322,8 @@ int hw_sm750_crtc_setMode(struct lynxfb_crtc *crtc,
|
||||
reg |= (var->xoffset & PANEL_WINDOW_WIDTH_X_MASK);
|
||||
POKE32(PANEL_WINDOW_WIDTH, reg);
|
||||
|
||||
reg = ((var->yres_virtual - 1) <<
|
||||
PANEL_WINDOW_HEIGHT_HEIGHT_SHIFT);
|
||||
reg = (var->yres_virtual - 1) <<
|
||||
PANEL_WINDOW_HEIGHT_HEIGHT_SHIFT;
|
||||
reg &= PANEL_WINDOW_HEIGHT_HEIGHT_MASK;
|
||||
reg |= (var->yoffset & PANEL_WINDOW_HEIGHT_Y_MASK);
|
||||
POKE32(PANEL_WINDOW_HEIGHT, reg);
|
||||
|
Loading…
Reference in New Issue
Block a user