sched: hmp: fix misleading-indentation build warning 46/137946/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 10 Jul 2017 10:26:32 +0000 (19:26 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 10 Jul 2017 10:28:16 +0000 (19:28 +0900)
This patch fixes following build warning caused by wrong indent:

   kernel/sched/fair.c: In function 'move_specific_task':
   kernel/sched/fair.c:9074:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (throttled_lb_pair(task_group(p), env->src_rq->cpu,
     ^~
   kernel/sched/fair.c:9078:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
      if (!hmp_can_migrate_task(p, env))
      ^~

Change-Id: Ibaad680588b9b6b7f1ba6fec3ec1422963268d7a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
kernel/sched/fair.c

index a24e4c2..67f8277 100644 (file)
@@ -9071,9 +9071,9 @@ static int move_specific_task(struct lb_env *env, struct task_struct *pm)
        struct task_struct *p, *n;
 
        list_for_each_entry_safe(p, n, &env->src_rq->cfs_tasks, se.group_node) {
-       if (throttled_lb_pair(task_group(p), env->src_rq->cpu,
+               if (throttled_lb_pair(task_group(p), env->src_rq->cpu,
                                env->dst_cpu))
-               continue;
+                       continue;
 
                if (!hmp_can_migrate_task(p, env))
                        continue;