Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbab567c authored by Naveen N. Rao's avatar Naveen N. Rao Committed by Steven Rostedt (VMware)
Browse files

ftrace: Simplify glob handling in unregister_ftrace_function_probe_func()

parent 30e7d894
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4144,9 +4144,9 @@ unregister_ftrace_function_probe_func(char *glob, struct trace_array *tr,
	int i, ret = -ENODEV;
	int size;

	if (glob && (strcmp(glob, "*") == 0 || !strlen(glob)))
	if (!glob || !strlen(glob) || !strcmp(glob, "*"))
		func_g.search = NULL;
	else if (glob) {
	else {
		int not;

		func_g.type = filter_parse_regex(glob, strlen(glob),