Skip to contentSkip to conversation

cgroup/cpuset: remove unreachable code

PATCH Applied Jiapeng Chong 2 participants 2 messages Sep 7, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 6baa977a71ba..b474289c15b8 100644
@@ -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
maintainer Applied
#1 lore raw

(cc'ing Waiman and quoting the whole message)

Quoted 9 lines · Jiapeng Chong

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.

---

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
index 6baa977a71ba..b474289c15b8 100644
@@ -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