summaryrefslogtreecommitdiffstats
path: root/kernel/trace/ring_buffer.c
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2010-08-10 14:17:51 -0700
committerIngo Molnar <mingo@elte.hu>2010-09-05 14:36:58 +0200
commitb3bd3de66f60df4c9a2076e2886a622458929056 (patch)
treed0b1fa885acfa96536cf74f487acb28d63442b83 /kernel/trace/ring_buffer.c
parentef5dc121d5a0bb1fa477c5395277259f07d318a3 (diff)
downloadtalos-op-linux-b3bd3de66f60df4c9a2076e2886a622458929056.tar.gz
talos-op-linux-b3bd3de66f60df4c9a2076e2886a622458929056.zip
gcc-4.6: kernel/*: Fix unused but set warnings
No real bugs I believe, just some dead code. Signed-off-by: Andi Kleen <ak@linux.intel.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: andi@firstfloor.org Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/ring_buffer.c')
-rw-r--r--kernel/trace/ring_buffer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index 19cccc3c3028..492197e2f86c 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -2985,13 +2985,11 @@ static void rb_advance_reader(struct ring_buffer_per_cpu *cpu_buffer)
static void rb_advance_iter(struct ring_buffer_iter *iter)
{
- struct ring_buffer *buffer;
struct ring_buffer_per_cpu *cpu_buffer;
struct ring_buffer_event *event;
unsigned length;
cpu_buffer = iter->cpu_buffer;
- buffer = cpu_buffer->buffer;
/*
* Check if we are at the end of the buffer.
OpenPOWER on IntegriCloud