cgroup/cpuset: remove unreachable code
Subsystems (2)
PATCH 1/1 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.
--- kernel/cgroup/cpuset.c | 2 -- 1 file changed, 2 deletions(-)
kernel/cgroup/cpuset.c +0 -2
@@ -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 ; }
Signature · 1 line
2.20.1.7.g153144c
(cc'ing Waiman and quoting the whole message)
Quoted 9 lines · Jiapeng Chong
The function
sched_partition_showcannot executeseq_puts, delete the invalid code.
kernel/cgroup/cpuset.c:2849sched_partition_show()warn: ignoring unreachable code.---
Applied to cgroup/for-6.1.
Thanks.
Quoted 19 lines
kernel/cgroup/cpuset.c | 2 -- 1 file changed, 2 deletions(-)kernel/cgroup/cpuset.c +0
-2@@ -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 ; }Signature · 1 line
2.20.1.7.g153144c
Signature · 1 line
tejun