Messages in this thread Patch in this message | | | From | Viresh Kumar <> | Subject | [PATCH V2 04/36] hrtimer: remove {} around a single liner 'for' loop in migrate_hrtimers() | Date | Fri, 4 Apr 2014 12:05:47 +0530 |
| |
'for' loop in migrate_hrtimers() has only one line in its body and so doesn't require {} as per coding guidelines. Remove it.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- kernel/hrtimer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index c87e896..514b53a 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -1712,10 +1712,9 @@ static void migrate_hrtimers(int scpu) raw_spin_lock(&new_base->lock); raw_spin_lock_nested(&old_base->lock, SINGLE_DEPTH_NESTING); - for (i = 0; i < HRTIMER_MAX_CLOCK_BASES; i++) { + for (i = 0; i < HRTIMER_MAX_CLOCK_BASES; i++) migrate_hrtimer_list(&old_base->clock_base[i], &new_base->clock_base[i]); - } raw_spin_unlock(&old_base->lock); raw_spin_unlock(&new_base->lock); -- 1.7.12.rc2.18.g61b472e
| |