diff options
author | Janani Ravichandran <janani.rvchndrn@gmail.com> | 2016-02-14 04:23:17 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-15 01:49:09 +0100 |
commit | a5975238323b249d75e1cf4095651d72fed11708 (patch) | |
tree | 2a79b8884f9b33fa4e541813ed53aebe330848f9 | |
parent | Staging: rtl8192u: Remove useless comments (diff) | |
download | linux-a5975238323b249d75e1cf4095651d72fed11708.tar.xz linux-a5975238323b249d75e1cf4095651d72fed11708.zip |
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>
-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); } |