diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-03-31 17:21:30 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-05-04 04:15:12 +0200 |
commit | 31805c90521ea75dfa3d016fc94f581da6a40fee (patch) | |
tree | 1764b40a21bdd8666f70e1569d5cf71d718ccb56 /kernel/trace/ftrace.c | |
parent | tracing: Use strlcpy() instead of strcpy() in __trace_find_cmdline() (diff) | |
download | linux-31805c90521ea75dfa3d016fc94f581da6a40fee.tar.xz linux-31805c90521ea75dfa3d016fc94f581da6a40fee.zip |
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>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 00077a57b746..84286d347cd8 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -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: |