All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: sm750fb: Remove unneeded braces in if...else statements
@ 2016-02-14  3:23 Janani Ravichandran
  0 siblings, 0 replies; only message in thread
From: Janani Ravichandran @ 2016-02-14  3:23 UTC (permalink / raw)
  To: outreachy-kernel

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

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
---
 drivers/staging/sm750fb/ddk750_power.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/sm750fb/ddk750_power.c b/drivers/staging/sm750fb/ddk750_power.c
index ec1cac2..33e092e 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);
 }
-- 
2.5.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-13 22:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-14  3:23 [PATCH] staging: sm750fb: Remove unneeded braces in if...else statements Janani Ravichandran

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.