From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx> When adding a helper function to perform the regex compiling (make_regex()), one place left the open coded compiling but still added the wrapper function. Link: https://lore.kernel.org/linux-trace-devel/48ad3a02-f4bf-1579-df6a-f4dc206a7e4e@xxxxxxxxx/ Reported-by: "Yordan Karadzhov (VMware)" <y.karadz@xxxxxxxxx> Fixes: de8592c0ef ("libtracefs: Fix tracefs_event_enable/disable() to not have open regex") Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx> --- src/tracefs-events.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tracefs-events.c b/src/tracefs-events.c index b6d3136..568bfe6 100644 --- a/src/tracefs-events.c +++ b/src/tracefs-events.c @@ -868,7 +868,6 @@ static int event_enable_disable(struct tracefs_instance *instance, if (system) { ret = make_regex(&system_re, system); - ret = regcomp(&system_re, system, REG_ICASE|REG_NOSUB); if (ret < 0) goto out_free; } -- 2.31.1