mirror of https://gitee.com/openkylin/linux.git
staging: sm750fb: Remove unneeded braces in if...else statements
Remove unnecessary braces in if...else statements where both branches have a single statement each. Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c8279611f3
commit
a597523832
|
@ -106,11 +106,10 @@ void enable2DEngine(unsigned int enable)
|
|||
u32 gate;
|
||||
|
||||
gate = PEEK32(CURRENT_GATE);
|
||||
if (enable) {
|
||||
if (enable)
|
||||
gate |= (CURRENT_GATE_DE | CURRENT_GATE_CSC);
|
||||
} else {
|
||||
else
|
||||
gate &= ~(CURRENT_GATE_DE | CURRENT_GATE_CSC);
|
||||
}
|
||||
|
||||
setCurrentGate(gate);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue