diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2022-09-07 12:01:12 +0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2022-09-07 05:30:29 -1000 |
commit | c478bd88362418bd2a1c230215fde184f5642e44 (patch) | |
tree | 98e3477222e11a24d91f485d0672b63409a30206 /kernel/cgroup/cpuset.c | |
parent | 8a693f7766f9e27c390c5fec8a5db1f9d1d8177e (diff) |
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>
Diffstat (limited to 'kernel/cgroup/cpuset.c')
-rw-r--r-- | kernel/cgroup/cpuset.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index 6baa977a71ba..b474289c15b8 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; } |