From: Steven Rostedt Date: Tue, 11 Nov 2008 20:28:41 +0000 (-0500) Subject: ring-buffer: clean up warn ons X-Git-Tag: v2.6.29-rc1~586^2~76^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e89c7bb92fc92bb964734341487798c8d497bae;p=pandora-kernel.git ring-buffer: clean up warn ons 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 Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed