From: Dan Carpenter Date: Fri, 31 Mar 2017 15:21:30 +0000 (+0300) Subject: ftrace: Remove an unneeded condition X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=31805c90521ea75dfa3d016fc94f581da6a40fee;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Steven Rostedt (VMware) --- 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: