]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cpuidle: rearrange code in __cpuidle_driver_init()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 3 Oct 2013 15:56:45 +0000 (21:26 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Oct 2013 00:21:22 +0000 (01:21 +0100)
This is trivial patch that just reorders a few statements in
__cpuidle_driver_init() routine so that we don't need both 'continue'
and 'break' in the for loop. Functionally it shouldn't change anything.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/driver.c

index d97d072a461c2e19170363d87a41c7b06a45e116..a930005d5a3af15c49666a97272b139ce41a24f1 100644 (file)
@@ -170,12 +170,10 @@ static void __cpuidle_driver_init(struct cpuidle_driver *drv)
         * order, because usually one of the deeper states have this flag set.
         */
        for (i = drv->state_count - 1; i >= 0 ; i--) {
-
-               if (!(drv->states[i].flags & CPUIDLE_FLAG_TIMER_STOP))
-                       continue;
-
-               drv->bctimer = 1;
-               break;
+               if (drv->states[i].flags & CPUIDLE_FLAG_TIMER_STOP) {
+                       drv->bctimer = 1;
+                       break;
+               }
        }
 }