Skip to content

Commit c478bd8

Browse files
Jiapeng Chonghtejun
authored andcommitted
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 <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 8a693f7 commit c478bd8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/cgroup/cpuset.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2846,8 +2846,6 @@ static int sched_partition_show(struct seq_file *seq, void *v)
28462846
else
28472847
seq_printf(seq, "%s invalid\n", type);
28482848
break;
2849-
seq_puts(seq, "isolated invalid\n");
2850-
break;
28512849
}
28522850
return 0;
28532851
}

0 commit comments

Comments
 (0)