From: Dhaval Giani <dhaval.giani@gmail.com>
To: a.p.zijlstra@chello.nl, mingo@elte.hu, oleg@redhat.com,
akinobu.mita@gmail.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] cpu.c: remove unused variable
Date: Thu, 18 Nov 2010 15:44:54 +0100 [thread overview]
Message-ID: <1290091494.1145.5.camel@gondor.retis> (raw)
cpu.c: remove unused variable
kernel/cpu.c: In function ‘take_cpu_down’:
kernel/cpu.c:200:15: warning: unused variable ‘cpu’
This variable is unused since param->hcpu is directly
used later on in cpu_notify.
Signed-off-by: Dhaval Giani <dhaval_giani@gmail.com>
---
kernel/cpu.c | 1 -
1 file changed, 1 deletion(-)
Index: linux-2.6/kernel/cpu.c
===================================================================
--- linux-2.6.orig/kernel/cpu.c
+++ linux-2.6/kernel/cpu.c
@@ -197,7 +197,6 @@ struct take_cpu_down_param {
static int __ref take_cpu_down(void *_param)
{
struct take_cpu_down_param *param = _param;
- unsigned int cpu = (unsigned long)param->hcpu;
int err;
/* Ensure this CPU doesn't handle any more interrupts. */
next reply other threads:[~2010-11-18 14:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 14:44 Dhaval Giani [this message]
2010-11-18 15:37 ` Oleg Nesterov
2010-11-18 15:49 ` Dhaval Giani
-- strict thread matches above, loose matches on Subject: below --
2010-11-18 14:41 Dhaval Giani
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=1290091494.1145.5.camel@gondor.retis \
--to=dhaval.giani@gmail.com \
--cc=a.p.zijlstra@chello.nl \
--cc=akinobu.mita@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=oleg@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®