From: Steven Rostedt Date: Fri, 30 Nov 2012 15:41:57 +0000 (-0500) Subject: ring-buffer: Remove unnecessary recusive call in rb_advance_iter() X-Git-Tag: v3.9-rc1~173^2~18^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=771e03842a9e98a1c2013ca1ed8bb2793488f3e5;p=pandora-kernel.git ring-buffer: Remove unnecessary recusive call in rb_advance_iter() The original ring-buffer code had special checks at the start of rb_advance_iter() and instead of repeating them again at the end of the function if a certain condition existed, I just did a recursive call to rb_advance_iter() because the special condition would cause rb_advance_iter() to return early (after the checks). But as things have changed, the special checks no longer exist and the only thing done for the special_condition is to call rb_inc_iter() and return. Instead of doing a confusing recursive call, just call rb_inc_iter instead. Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed