Skip to contentSkip to conversation

ftrace: Remove an unneeded condition

PATCH New Dan Carpenter 1 participant 1 message Mar 31, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ftrace: Remove an unneeded condition

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

kernel/trace/ftrace.c +1 -1
index b9691ee8f6c1..efa396f183d2 100644
@@ -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: