cgroup/cpuset: remove unreachable code

The function sched_partition_show cannot execute seq_puts, delete the
invalid code.

kernel/cgroup/cpuset.c:2849 sched_partition_show() warn: ignoring unreachable code.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2087
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Jiapeng Chong 2022-09-07 12:01:12 +08:00 committed by Tejun Heo
parent 8a693f7766
commit c478bd8836

View File

@ -2846,8 +2846,6 @@ static int sched_partition_show(struct seq_file *seq, void *v)
else
seq_printf(seq, "%s invalid\n", type);
break;
seq_puts(seq, "isolated invalid\n");
break;
}
return 0;
}