Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 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>

authored by

Stephen Rothwell and committed by
Linus Torvalds
20777766 b1cd2ee3

+1 -1
+1 -1
kernel/cgroup.c
··· 2104 2104 down_read(&cgrp->pids_mutex); 2105 2105 if (pid) { 2106 2106 int end = cgrp->pids_length; 2107 - int i; 2107 + 2108 2108 while (index < end) { 2109 2109 int mid = (index + end) / 2; 2110 2110 if (cgrp->tasks_pids[mid] == pid) {