[PATCH] ftrace: Remove an unneeded condition

From: Dan Carpenter
Date: Fri Mar 31 2017 - 11:21:50 EST


We know that "mod_matches" is true here so there is no need to check
again.

Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index b9691ee8f6c1..efa396f183d2 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -3586,7 +3586,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: