Skip to content

Commit 2077776

Browse files
sfrothwelltorvalds
authored andcommitted
cgroup: remove unused variable
/scratch/sfr/next/kernel/cgroup.c: In function 'cgroup_tasks_start': /scratch/sfr/next/kernel/cgroup.c:2107: warning: unused variable 'i' Introduced in commit cc31edc "cgroups: convert tasks file to use a seq_file with shared pid array". Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent b1cd2ee commit 2077776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/cgroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,7 @@ static void *cgroup_tasks_start(struct seq_file *s, loff_t *pos)
21042104
down_read(&cgrp->pids_mutex);
21052105
if (pid) {
21062106
int end = cgrp->pids_length;
2107-
int i;
2107+
21082108
while (index < end) {
21092109
int mid = (index + end) / 2;
21102110
if (cgrp->tasks_pids[mid] == pid) {

0 commit comments

Comments
 (0)