aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-09-01 12:23:12 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-09-01 12:23:12 -0400
commitf6195aa09e618d712f52bf4fa33b5293820eb93d (patch)
treea41ef0dce7ebb3e670b6e1a7214a4f558110178e /include/trace
parentc9cf4a019cff198ee5638323e3b0ee18886467e8 (diff)
downloadkernel_goldelico_gta04-f6195aa09e618d712f52bf4fa33b5293820eb93d.zip
kernel_goldelico_gta04-f6195aa09e618d712f52bf4fa33b5293820eb93d.tar.gz
kernel_goldelico_gta04-f6195aa09e618d712f52bf4fa33b5293820eb93d.tar.bz2
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 <linville@tuxdriver.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions