Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20777766 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Linus Torvalds
Browse files

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 cc31edce "cgroups:
convert tasks file to use a seq_file with shared pid array".

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b1cd2ee3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {