ftrace: Remove an unneeded condition

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>
This commit is contained in:
Dan Carpenter 2017-03-31 18:21:30 +03:00 committed by Steven Rostedt (VMware)
parent e09e28671c
commit 31805c9052
1 changed files with 1 additions and 1 deletions

View File

@ -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: