Browse Source

timers/PM: Drop unnecessary braces from tick_freeze()

Some braces in tick_freeze() are not necessary, so drop them.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: peterz@infradead.org
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1534128.H5hN3KBFB4@vostro.rjw.lan
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Rafael J. Wysocki 10 years ago
parent
commit
def747087e
1 changed files with 2 additions and 3 deletions
  1. 2 3
      kernel/time/tick-common.c

+ 2 - 3
kernel/time/tick-common.c

@@ -457,11 +457,10 @@ void tick_freeze(void)
 	raw_spin_lock(&tick_freeze_lock);
 	raw_spin_lock(&tick_freeze_lock);
 
 
 	tick_freeze_depth++;
 	tick_freeze_depth++;
-	if (tick_freeze_depth == num_online_cpus()) {
+	if (tick_freeze_depth == num_online_cpus())
 		timekeeping_suspend();
 		timekeeping_suspend();
-	} else {
+	else
 		tick_suspend_local();
 		tick_suspend_local();
-	}
 
 
 	raw_spin_unlock(&tick_freeze_lock);
 	raw_spin_unlock(&tick_freeze_lock);
 }
 }