[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20170331152130.GA4947@mwanda>
Date: Fri, 31 Mar 2017 18:21:30 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: [PATCH] ftrace: Remove an unneeded condition
We know that "mod_matches" is true here so there is no need to check
again.
Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
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:
Powered by blists - more mailing lists