diff options
author | Janani Ravichandran <janani.rvchndrn@gmail.com> | 2016-02-13 22:23:17 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-14 16:49:09 -0800 |
commit | a5975238323b249d75e1cf4095651d72fed11708 (patch) | |
tree | 2a79b8884f9b33fa4e541813ed53aebe330848f9 /drivers/staging/sm750fb | |
parent | c8279611f3fcabdb05e6fe87fe393ccfc2e3d8bc (diff) |
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>
Diffstat (limited to 'drivers/staging/sm750fb')
-rw-r--r-- | drivers/staging/sm750fb/ddk750_power.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/sm750fb/ddk750_power.c b/drivers/staging/sm750fb/ddk750_power.c index ec1cac2c1793..33e092e026e9 100644 --- a/drivers/staging/sm750fb/ddk750_power.c +++ b/drivers/staging/sm750fb/ddk750_power.c @@ -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); } |