ftrace: Remove an unneeded condition
Subsystems (3)
PATCH 1/1 ftrace: Remove an unneeded condition
We know that "mod_matches" is true here so there is no need to check again.
Signed-off-by Dan Carpenter <[email protected]>
kernel/trace/ftrace.c +1 -1
@@ -3586,7 +3586,7 @@ ftrace_match_record(struct dyn_ftrace *rec, struct ftrace_glob *func_g,return 0 ; } -if (mod_matches && exclude_mod) +if (exclude_mod)return 0 ; func_match: