staging: sm750fb: Remove unneeded braces in if...else statements
authorJanani Ravichandran <janani.rvchndrn@gmail.com>
Sun, 14 Feb 2016 03:23:17 +0000 (22:23 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 00:49:09 +0000 (16:49 -0800)
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>
drivers/staging/sm750fb/ddk750_power.c

index ec1cac2c1793e11185a051691ba2178f66043700..33e092e026e966c1be90ae56d5ca98a8959357c1 100644 (file)
@@ -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);
 }