Skip to content

Commit 31805c9

Browse files
Dan Carpenterrostedt
authored andcommitted
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>
1 parent e09e286 commit 31805c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/ftrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3644,7 +3644,7 @@ ftrace_match_record(struct dyn_ftrace *rec, struct ftrace_glob *func_g,
36443644
return 0;
36453645
}
36463646

3647-
if (mod_matches && exclude_mod)
3647+
if (exclude_mod)
36483648
return 0;
36493649

36503650
func_match:

0 commit comments

Comments
 (0)