Skip to content

Commit

Permalink
perf probe: Remove unused tracing_dir variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masami Hiramatsu authored and Arnaldo Carvalho de Melo committed Aug 24, 2016
1 parent 36e674a commit 04e1196
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/perf/util/probe-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 04e1196

Please sign in to comment.