Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1614109

[PATCH] ftrace: Remove an unneeded condition

From Dan Carpenter <dan.carpenter@oracle.com>
Newsgroups linux.kernel
Subject [PATCH] ftrace: Remove an unneeded condition
Date 2017-03-31 17:30 +0200
Message-ID <tr6EW-6mF-13@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.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:

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] ftrace: Remove an unneeded condition Dan Carpenter <dan.carpenter@oracle.com> - 2017-03-31 17:30 +0200

csiph-web