Skip to content

Commit 5852a44

Browse files
committed
perf inject: Remove unused 'input_name' static var
If we ever want to allow inject to work with something other than stdin, we can put it back, but so far it is completely unused, so ditch it. Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent ba3d7de commit 5852a44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/perf/builtin-inject.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
#include "util/parse-options.h"
1616

17-
static char const *input_name = "-";
1817
static bool inject_build_ids;
1918

2019
static int perf_event__repipe_synth(struct perf_tool *tool __maybe_unused,
@@ -245,7 +244,7 @@ static int __cmd_inject(void)
245244
perf_inject.tracing_data = perf_event__repipe_tracing_data;
246245
}
247246

248-
session = perf_session__new(input_name, O_RDONLY, false, true, &perf_inject);
247+
session = perf_session__new("-", O_RDONLY, false, true, &perf_inject);
249248
if (session == NULL)
250249
return -ENOMEM;
251250

0 commit comments

Comments
 (0)