diff options
author | Matt Fleming <matt@console-pimps.org> | 2009-07-23 12:16:14 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-07-23 12:20:08 -0400 |
commit | fc4c73554c9d93b3e495f2f7acae1323b0d5db84 (patch) | |
tree | a9635397f1c489a77ac398567c42a01e0c3bd06b /scripts/recordmcount.pl | |
parent | 8650ae32ef7045e763825dee6256dde7f331bb85 (diff) |
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/recordmcount.pl')
-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>) { | |||
414 | $read_function = 0; | 414 | $read_function = 0; |
415 | } else { | 415 | } else { |
416 | # if we already have a function, and this is weak, skip it | 416 | # if we already have a function, and this is weak, skip it |
417 | if (!defined($ref_func) || !defined($weak{$text})) { | 417 | if (!defined($ref_func) && !defined($weak{$text})) { |
418 | $ref_func = $text; | 418 | $ref_func = $text; |
419 | } | 419 | } |
420 | } | 420 | } |