Skip to contentSkip to conversation

staging: sm750fb: Remove unneeded braces in if...else statements

PATCH New Janani Ravichandran 1 participant 1 message Feb 13, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: sm750fb: Remove unneeded braces in if...else statements

Remove unnecessary braces in if...else statements where both branches have a single statement each.

---
 drivers/staging/sm750fb/ddk750_power.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/staging/sm750fb/ddk750_power.c +2 -3
index ec1cac2..33e092e 100644
@@ -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);
 }
Signature · 1 line
2.5.0