tracing: Evaluate len expression only once in __dynamic_array macro
authorFilipe Brandenburger <filbranden@google.com>
Sat, 1 Mar 2014 05:32:17 +0000 (21:32 -0800)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 7 Mar 2014 15:06:11 +0000 (10:06 -0500)
Use a temporary variable to store the expansion of the len expression.
If the evaluation is expensive, this commit will ensure it is evaluated
only once inside ftrace_get_offsets_<call>.

Link: http://lkml.kernel.org/r/1393651938-16418-3-git-send-email-filbranden@google.com
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/trace/ftrace.h

Simple merge