]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
perf probe: Remove unused tracing_dir variable
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 24 Aug 2016 05:57:58 +0000 (14:57 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 24 Aug 2016 12:41:56 +0000 (09:41 -0300)
Remove unused tracing_dir variable from open_probe_events().

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/147201827792.5713.4165387506020511920.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-file.c

index 697ef66bff91c7c1cdc9f947dd173c98ce67f266..6f931e442f14ab157fed25fdb7ab282932943f8b 100644 (file)
@@ -73,11 +73,10 @@ static void print_both_open_warning(int kerr, int uerr)
 static int open_probe_events(const char *trace_file, bool readwrite)
 {
        char buf[PATH_MAX];
-       const char *tracing_dir = "";
        int ret;
 
-       ret = e_snprintf(buf, PATH_MAX, "%s/%s%s",
-                        tracing_path, tracing_dir, trace_file);
+       ret = e_snprintf(buf, PATH_MAX, "%s/%s",
+                        tracing_path, trace_file);
        if (ret >= 0) {
                pr_debug("Opening %s write=%d\n", buf, readwrite);
                if (readwrite && !probe_event_dry_run)