lkml.org 
[lkml]   [2008]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] cgroup.c remove unused variable in cgroup_tasks_start
Date
From: Henrik Austad <henrik@austad.us>

The variable i was moved by commit cc31edce, but the corresponding for loop that used i,
was completely removed. This causes warning at compile time.

Signed-off-by: Henrik Austad <henrik@austad.us>
---
kernel/cgroup.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 046c160..ed21eb5 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -2104,7 +2104,6 @@ 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) {
--
1.6.0.2


\
 
 \ /
  Last update: 2008-10-23 13:45    [W:0.026 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site