From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933829AbcIENUN (ORCPT ); Mon, 5 Sep 2016 09:20:13 -0400 Received: from terminus.zytor.com ([198.137.202.10]:38500 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933474AbcIENUI (ORCPT ); Mon, 5 Sep 2016 09:20:08 -0400 Date: Mon, 5 Sep 2016 06:19:28 -0700 From: tip-bot for Masami Hiramatsu Message-ID: Cc: jolsa@redhat.com, tglx@linutronix.de, peterz@infradead.org, acme@redhat.com, hpa@zytor.com, mhiramat@kernel.org, linux-kernel@vger.kernel.org, mingo@kernel.org Reply-To: mingo@kernel.org, linux-kernel@vger.kernel.org, mhiramat@kernel.org, hpa@zytor.com, acme@redhat.com, peterz@infradead.org, jolsa@redhat.com, tglx@linutronix.de In-Reply-To: <147201827792.5713.4165387506020511920.stgit@devbox> References: <147201827792.5713.4165387506020511920.stgit@devbox> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf probe: Remove unused tracing_dir variable Git-Commit-ID: 04e11960aa9a5edbe612dd8623190e341aedab35 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 04e11960aa9a5edbe612dd8623190e341aedab35 Gitweb: http://git.kernel.org/tip/04e11960aa9a5edbe612dd8623190e341aedab35 Author: Masami Hiramatsu AuthorDate: Wed, 24 Aug 2016 14:57:58 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 24 Aug 2016 09:41:56 -0300 perf probe: Remove unused tracing_dir variable Remove unused tracing_dir variable from open_probe_events(). Signed-off-by: Masami Hiramatsu Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/147201827792.5713.4165387506020511920.stgit@devbox Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/probe-file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/probe-file.c b/tools/perf/util/probe-file.c index 697ef66..6f931e4 100644 --- a/tools/perf/util/probe-file.c +++ b/tools/perf/util/probe-file.c @@ -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)