Skip to content

Commit

Permalink
ftrace: Remove an unneeded condition
Browse files Browse the repository at this point in the history
We know that "mod_matches" is true here so there is no need to check
again.

Link: http://lkml.kernel.org/r/20170331152130.GA4947@mwanda

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
  • Loading branch information
Dan Carpenter authored and rostedt committed May 4, 2017
1 parent e09e286 commit 31805c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -3644,7 +3644,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:
Expand Down

0 comments on commit 31805c9

Please sign in to comment.