From: Jiapeng Chong Date: Wed, 7 Sep 2022 04:01:12 +0000 (+0800) Subject: cgroup/cpuset: remove unreachable code X-Git-Tag: v6.1-rc5~239^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c478bd88362418bd2a1c230215fde184f5642e44;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Jiapeng Chong Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index 6baa977..b474289 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -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; }