Skip to content

Commit

Permalink
ftrace: Fix the conditional that updates $ref_func
Browse files Browse the repository at this point in the history
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 <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
  • Loading branch information
mfleming authored and rostedt committed Jul 23, 2009
1 parent 8650ae3 commit fc4c735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/recordmcount.pl
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ sub update_funcs
$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;
}
}
Expand Down

0 comments on commit fc4c735

Please sign in to comment.