tracing: remove unused variable
authorAndrea Righi <righi.andrea@gmail.com>
Sun, 27 Jul 2008 11:39:03 +0000 (13:39 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 27 Jul 2008 16:58:20 +0000 (09:58 -0700)
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/trace/trace.c

index fc20e09a6cb1438f8c7b854e9cadb01aa109db02..8f3fb3db61c39306bdbffd36303cfed7dab02420 100644 (file)
@@ -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;