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_.
Signed-off-by: Filipe Brandenburger
---
include/trace/ftrace.h | 6 --
1 file changed, 4 insertions(+), 2
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.
Signed-off-by: Filipe Brandenburger filbran...@google.com
---
include/trace/ftrace.h | 6 --
1 file
2 matches
Mail list logo