cgroup: remove unused variable
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 Oct 2008 05:11:20 +0000 (16:11 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 26 Oct 2008 16:38:17 +0000 (09:38 -0700)
/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 cc31edceee04a7b87f2be48f9489ebb72d264844 "cgroups:
convert tasks file to use a seq_file with shared pid array".

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cgroup.c

index 046c1609606bc627059aa6cd5df687fa86f15d3b..35eebd5510c2165c6f8daa2cef1fecab9187d6d0 100644 (file)
@@ -2104,7 +2104,7 @@ static void *cgroup_tasks_start(struct seq_file *s, loff_t *pos)
        down_read(&cgrp->pids_mutex);
        if (pid) {
                int end = cgrp->pids_length;
-               int i;
+
                while (index < end) {
                        int mid = (index + end) / 2;
                        if (cgrp->tasks_pids[mid] == pid) {