]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
trace: remove extra assign in branch check
authorSteven Rostedt <srostedt@redhat.com>
Fri, 21 Nov 2008 04:57:47 +0000 (23:57 -0500)
committerIngo Molnar <mingo@elte.hu>
Sun, 23 Nov 2008 10:39:28 +0000 (11:39 +0100)
Impact: clean up of branch check

The unlikely/likely profiler does an extra assign of the f.line.
This is not needed since it is already calculated at compile time.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/compiler.h

index c7d804a7a4d67b76524960343cc59b22b3bebdbb..c25e525121f0ae5ab04a91ba1dd498b917a5a758 100644 (file)
@@ -87,7 +87,6 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
                                .file = __FILE__,                       \
                                .line = __LINE__,                       \
                        };                                              \
-                       ______f.line = __LINE__;                        \
                        ______r = likely_notrace(x);                    \
                        ftrace_likely_update(&______f, ______r, 1);     \
                        ______r;                                        \
@@ -102,7 +101,6 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
                                .file = __FILE__,                       \
                                .line = __LINE__,                       \
                        };                                              \
-                       ______f.line = __LINE__;                        \
                        ______r = unlikely_notrace(x);                  \
                        ftrace_likely_update(&______f, ______r, 0);     \
                        ______r;                                        \