From: Steven Rostedt Date: Wed, 1 Sep 2010 16:23:12 +0000 (-0400) Subject: ring-buffer: Place duplicate expression into a single function X-Git-Tag: v2.6.37-rc1~214^2~91 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6195aa09e618d712f52bf4fa33b5293820eb93d;p=pandora-kernel.git ring-buffer: Place duplicate expression into a single function While discussing the strictness of the 80 character limit on the Kernel Summit Discussion mailing list, I showed examples that I broke that limit slightly with some algorithms. In discussing with John Linville, what looked better, I realized that two of the 80 char breaking culprits were an identical expression. As a clean up, this patch moves the identical expression into its own helper function and that is used instead. As a side effect, the offending code is now under the 80 character limit. :-) This clean up code also changes the expression from (A - B) - C to A - (B + C) This makes the code look a little nicer too. Cc: John W. Linville Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed