Commit 26797a34 authored by Ingo Molnar's avatar Ingo Molnar

sched: break out if printing a warning in sched_domain_debug()

checkpatch.pl and Andy Whitcroft noticed the following bug: we did
not break out after printing an error.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 3e9830dc
...@@ -5534,16 +5534,19 @@ static void sched_domain_debug(struct sched_domain *sd, int cpu) ...@@ -5534,16 +5534,19 @@ static void sched_domain_debug(struct sched_domain *sd, int cpu)
printk("\n"); printk("\n");
printk(KERN_ERR "ERROR: domain->cpu_power not " printk(KERN_ERR "ERROR: domain->cpu_power not "
"set\n"); "set\n");
break;
} }
if (!cpus_weight(group->cpumask)) { if (!cpus_weight(group->cpumask)) {
printk("\n"); printk("\n");
printk(KERN_ERR "ERROR: empty group\n"); printk(KERN_ERR "ERROR: empty group\n");
break;
} }
if (cpus_intersects(groupmask, group->cpumask)) { if (cpus_intersects(groupmask, group->cpumask)) {
printk("\n"); printk("\n");
printk(KERN_ERR "ERROR: repeated CPUs\n"); printk(KERN_ERR "ERROR: repeated CPUs\n");
break;
} }
cpus_or(groupmask, groupmask, group->cpumask); cpus_or(groupmask, groupmask, group->cpumask);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment