diff options
author | Matt Fleming <matt@console-pimps.org> | 2009-07-23 20:16:14 +0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-07-23 20:20:08 +0400 |
commit | fc4c73554c9d93b3e495f2f7acae1323b0d5db84 (patch) | |
tree | a9635397f1c489a77ac398567c42a01e0c3bd06b /scripts | |
parent | 8650ae32ef7045e763825dee6256dde7f331bb85 (diff) | |
download | linux-fc4c73554c9d93b3e495f2f7acae1323b0d5db84.tar.xz |
ftrace: Fix the conditional that updates $ref_func
Fix the conditional that checks if we already have a $ref_func and that
the new function is weak. The code as previously checking whether either
condition was false, and we really need to only update $ref_func is both
cconditions are false.
Signed-off-by: Matt Fleming <matt@console-pimps.org>
LKML-Reference: <1248365775-25196-1-git-send-email-matt@console-pimps.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/recordmcount.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl index 7109e2b5bc0a..16c5563b4129 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl @@ -414,7 +414,7 @@ while (<IN>) { $read_function = 0; } else { # if we already have a function, and this is weak, skip it - if (!defined($ref_func) || !defined($weak{$text})) { + if (!defined($ref_func) && !defined($weak{$text})) { $ref_func = $text; } } |