mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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 cc31edceee
"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>
This commit is contained in:
parent
b1cd2ee3b9
commit
2077776641
1 changed files with 1 additions and 1 deletions
|
@ -2104,7 +2104,7 @@ static void *cgroup_tasks_start(struct seq_file *s, loff_t *pos)
|
||||||
down_read(&cgrp->pids_mutex);
|
down_read(&cgrp->pids_mutex);
|
||||||
if (pid) {
|
if (pid) {
|
||||||
int end = cgrp->pids_length;
|
int end = cgrp->pids_length;
|
||||||
int i;
|
|
||||||
while (index < end) {
|
while (index < end) {
|
||||||
int mid = (index + end) / 2;
|
int mid = (index + end) / 2;
|
||||||
if (cgrp->tasks_pids[mid] == pid) {
|
if (cgrp->tasks_pids[mid] == pid) {
|
||||||
|
|
Loading…
Reference in a new issue