public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] tracing: remove unused variable
@ 2008-07-27 11:39 Andrea Righi
  2008-07-28 14:38 ` Steven Rostedt
  0 siblings, 1 reply; 2+ messages in thread
From: Andrea Righi @ 2008-07-27 11:39 UTC (permalink / raw)
  To: srostedt; +Cc: mingo, torvalds, akpm, linux-kernel, Andrea Righi

Remove the following warning with CONFIG_TRACING=y:

	kernel/trace/trace.c: In function ‘s_next’:
	kernel/trace/trace.c:1186: warning: unused variable ‘last_ent’

Signed-off-by: Andrea Righi <righi.andrea@gmail.com>
---
 kernel/trace/trace.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index fc20e09..8f3fb3d 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -1183,7 +1183,6 @@ static void *find_next_entry_inc(struct trace_iterator *iter)
 static void *s_next(struct seq_file *m, void *v, loff_t *pos)
 {
 	struct trace_iterator *iter = m->private;
-	void *last_ent = iter->ent;
 	int i = (int)*pos;
 	void *ent;
 
-- 
1.5.4.3


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

* Re: [PATCH 1/1] tracing: remove unused variable
  2008-07-27 11:39 [PATCH 1/1] tracing: remove unused variable Andrea Righi
@ 2008-07-28 14:38 ` Steven Rostedt
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2008-07-28 14:38 UTC (permalink / raw)
  To: Andrea Righi; +Cc: mingo, torvalds, akpm, linux-kernel

Andrea Righi wrote:
> Remove the following warning with CONFIG_TRACING=y:
> 
> 	kernel/trace/trace.c: In function ‘s_next’:
> 	kernel/trace/trace.c:1186: warning: unused variable ‘last_ent’
> 
> Signed-off-by: Andrea Righi <righi.andrea@gmail.com>

Thanks!

Acked-by: Steven Rostedt <srostedt@redhat.com>

-- Steve



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

end of thread, other threads:[~2008-07-28 14:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-27 11:39 [PATCH 1/1] tracing: remove unused variable Andrea Righi
2008-07-28 14:38 ` Steven Rostedt

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