]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - kernel/trace/ftrace.c
ftrace: Simplify glob handling in unregister_ftrace_function_probe_func()
[mirror_ubuntu-artful-kernel.git] / kernel / trace / ftrace.c
index 39dca4e86a94f0867c29aaa29b47d881eefd02e8..c35c3e67d09a05be22f350978579e7ea0f59d9fd 100644 (file)
@@ -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),