From: Janani Ravichandran Date: Sun, 14 Feb 2016 03:23:17 +0000 (-0500) Subject: staging: sm750fb: Remove unneeded braces in if...else statements X-Git-Tag: next-20160301~20^2~417 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a5975238323b249d75e1cf4095651d72fed11708;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- 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); }