LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] kernel/cgroup.c: remove unused variable
@ 2008-10-20 21:56 Alexander Beregalov
  2008-10-21  0:13 ` Li Zefan
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Beregalov @ 2008-10-20 21:56 UTC (permalink / raw)
  To: menage, linux-kernel



Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] kernel/cgroup.c: remove unused variable
  2008-10-20 21:56 [PATCH] kernel/cgroup.c: remove unused variable Alexander Beregalov
@ 2008-10-21  0:13 ` Li Zefan
  0 siblings, 0 replies; 2+ messages in thread
From: Li Zefan @ 2008-10-21  0:13 UTC (permalink / raw)
  To: Alexander Beregalov; +Cc: menage, linux-kernel

Alexander Beregalov wrote:
> 

I've sent a patch including this cleanup yesterday.

> Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
> ---
> 
>  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) {
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-21  0:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-20 21:56 [PATCH] kernel/cgroup.c: remove unused variable Alexander Beregalov
2008-10-21  0:13 ` Li Zefan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).