public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched: remove unused variable
@ 2011-05-12 14:28 Lucas De Marchi
  2011-05-12 14:56 ` Yong Zhang
  0 siblings, 1 reply; 2+ messages in thread
From: Lucas De Marchi @ 2011-05-12 14:28 UTC (permalink / raw)
  To: mingo; +Cc: Lucas De Marchi, linux-kernel

Remove variable that is set but not used, cleaning GCC warning.

Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
---
 kernel/sched.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 312f8b9..66319fd 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8553,7 +8553,6 @@ int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
 {
 	struct rt_rq *rt_rq;
 	struct sched_rt_entity *rt_se;
-	struct rq *rq;
 	int i;
 
 	tg->rt_rq = kzalloc(sizeof(rt_rq) * nr_cpu_ids, GFP_KERNEL);
@@ -8567,8 +8566,6 @@ int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
 			ktime_to_ns(def_rt_bandwidth.rt_period), 0);
 
 	for_each_possible_cpu(i) {
-		rq = cpu_rq(i);
-
 		rt_rq = kzalloc_node(sizeof(struct rt_rq),
 				     GFP_KERNEL, cpu_to_node(i));
 		if (!rt_rq)
-- 
1.7.5.1


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

* Re: [PATCH] sched: remove unused variable
  2011-05-12 14:28 [PATCH] sched: remove unused variable Lucas De Marchi
@ 2011-05-12 14:56 ` Yong Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: Yong Zhang @ 2011-05-12 14:56 UTC (permalink / raw)
  To: Lucas De Marchi; +Cc: mingo, Lucas De Marchi, linux-kernel

On Thu, May 12, 2011 at 11:28:36AM -0300, Lucas De Marchi wrote:
> Remove variable that is set but not used, cleaning GCC warning.
> 
> Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>

This has been on -tip tree: commit 1437f5bca3c2d162f058cba37dfbeb20f619040d

Thanks,
Yong

> ---
>  kernel/sched.c |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)
> 
> diff --git a/kernel/sched.c b/kernel/sched.c
> index 312f8b9..66319fd 100644
> --- a/kernel/sched.c
> +++ b/kernel/sched.c
> @@ -8553,7 +8553,6 @@ int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
>  {
>  	struct rt_rq *rt_rq;
>  	struct sched_rt_entity *rt_se;
> -	struct rq *rq;
>  	int i;
>  
>  	tg->rt_rq = kzalloc(sizeof(rt_rq) * nr_cpu_ids, GFP_KERNEL);
> @@ -8567,8 +8566,6 @@ int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
>  			ktime_to_ns(def_rt_bandwidth.rt_period), 0);
>  
>  	for_each_possible_cpu(i) {
> -		rq = cpu_rq(i);
> -
>  		rt_rq = kzalloc_node(sizeof(struct rt_rq),
>  				     GFP_KERNEL, cpu_to_node(i));
>  		if (!rt_rq)
> -- 
> 1.7.5.1
> 
> --
> 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:[~2011-05-12 14:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-12 14:28 [PATCH] sched: remove unused variable Lucas De Marchi
2011-05-12 14:56 ` Yong Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox