diff options
Diffstat (limited to 'tools/perf/builtin-timechart.c')
-rw-r--r-- | tools/perf/builtin-timechart.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c index f251b613b2f3..ab4cf232b852 100644 --- a/tools/perf/builtin-timechart.c +++ b/tools/perf/builtin-timechart.c | |||
@@ -965,7 +965,7 @@ static void write_svg_file(const char *filename) | |||
965 | svg_close(); | 965 | svg_close(); |
966 | } | 966 | } |
967 | 967 | ||
968 | static int __cmd_timechart(const char *input_name, const char *output_name) | 968 | static int __cmd_timechart(const char *output_name) |
969 | { | 969 | { |
970 | struct perf_tool perf_timechart = { | 970 | struct perf_tool perf_timechart = { |
971 | .comm = process_comm_event, | 971 | .comm = process_comm_event, |
@@ -1061,7 +1061,6 @@ parse_process(const struct option *opt __maybe_unused, const char *arg, | |||
1061 | int cmd_timechart(int argc, const char **argv, | 1061 | int cmd_timechart(int argc, const char **argv, |
1062 | const char *prefix __maybe_unused) | 1062 | const char *prefix __maybe_unused) |
1063 | { | 1063 | { |
1064 | const char *input_name; | ||
1065 | const char *output_name = "output.svg"; | 1064 | const char *output_name = "output.svg"; |
1066 | const struct option options[] = { | 1065 | const struct option options[] = { |
1067 | OPT_STRING('i', "input", &input_name, "file", "input file name"), | 1066 | OPT_STRING('i', "input", &input_name, "file", "input file name"), |
@@ -1092,5 +1091,5 @@ int cmd_timechart(int argc, const char **argv, | |||
1092 | 1091 | ||
1093 | setup_pager(); | 1092 | setup_pager(); |
1094 | 1093 | ||
1095 | return __cmd_timechart(input_name, output_name); | 1094 | return __cmd_timechart(output_name); |
1096 | } | 1095 | } |