All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yong Zhang <yong.zhang0@gmail.com>
To: Lucas De Marchi <lucas.de.marchi@gmail.com>
Cc: mingo@elte.hu, Lucas De Marchi <lucas.demarchi@profusion.mobi>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sched: remove unused variable
Date: Thu, 12 May 2011 22:56:41 +0800	[thread overview]
Message-ID: <20110512145641.GA4475@zhy> (raw)
In-Reply-To: <1305210516-1653-1-git-send-email-lucas.demarchi@profusion.mobi>

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/

      reply	other threads:[~2011-05-12 14:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-12 14:28 [PATCH] sched: remove unused variable Lucas De Marchi
2011-05-12 14:56 ` Yong Zhang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110512145641.GA4475@zhy \
    --to=yong.zhang0@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lucas.de.marchi@gmail.com \
    --cc=lucas.demarchi@profusion.mobi \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.