ring-buffer: clean up warn ons
authorSteven Rostedt <srostedt@redhat.com>
Tue, 11 Nov 2008 20:28:41 +0000 (15:28 -0500)
committerIngo Molnar <mingo@elte.hu>
Tue, 11 Nov 2008 21:02:35 +0000 (22:02 +0100)
Impact: Restructure WARN_ONs in ring_buffer.c

The current WARN_ON macros in ring_buffer.c are quite ugly.

This patch cleans them up and uses a single RB_WARN_ON that returns
the value of the condition. This allows the caller to abort the
function if the condition is true.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found