ring-buffer: remove unused variable
authorSteven Rostedt <srostedt@redhat.com>
Tue, 16 Jun 2009 15:50:18 +0000 (11:50 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 16 Jun 2009 20:24:39 +0000 (16:24 -0400)
Fix the compiler error:

kernel/trace/ring_buffer.c: In function 'rb_move_tail':
kernel/trace/ring_buffer.c:1236: warning: unused variable 'event'

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c

index dbc0f93..e857e94 100644 (file)
@@ -1233,7 +1233,6 @@ rb_move_tail(struct ring_buffer_per_cpu *cpu_buffer,
 {
        struct buffer_page *next_page, *head_page, *reader_page;
        struct ring_buffer *buffer = cpu_buffer->buffer;
-       struct ring_buffer_event *event;
        bool lock_taken = false;
        unsigned long flags;