public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH linux-next] perf: remove unused variable
@ 2014-05-11 21:43 Vincent Stehlé
  2014-05-12  8:03 ` Peter Zijlstra
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Stehlé @ 2014-05-11 21:43 UTC (permalink / raw)
  To: linux-kernel, linux-next
  Cc: Vincent Stehlé, Peter Zijlstra, Paul Mackerras, Ingo Molnar,
	Arnaldo Carvalho de Melo

This fixes the following compilation warning:

  kernel/events/core.c: In function ‘perf_event_exit_task_context’:
  kernel/events/core.c:7434:35: warning: unused variable ‘tmp’ [-Wunused-variable]

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte•net>
Cc: Peter Zijlstra <a.p.zijlstra@chello•nl>
Cc: Paul Mackerras <paulus@samba•org>
Cc: Ingo Molnar <mingo@redhat•com>
Cc: Arnaldo Carvalho de Melo <acme@kernel•org>
---

Hi,

This can be seen with e.g. linux next-20140509 and arm allmodconfig.

Best regards,

V.

 kernel/events/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/events/core.c b/kernel/events/core.c
index 7ab734f..ed50b09 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -7431,7 +7431,7 @@ __perf_event_exit_task(struct perf_event *child_event,
 
 static void perf_event_exit_task_context(struct task_struct *child, int ctxn)
 {
-	struct perf_event *child_event, *tmp;
+	struct perf_event *child_event;
 	struct perf_event_context *child_ctx;
 	unsigned long flags;
 
-- 
2.0.0.rc0

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

end of thread, other threads:[~2014-05-12  8:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-11 21:43 [PATCH linux-next] perf: remove unused variable Vincent Stehlé
2014-05-12  8:03 ` Peter Zijlstra

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