diff options
author | Namhyung Kim <namhyung@kernel.org> | 2015-12-09 22:00:59 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-12-10 13:47:52 -0500 |
commit | 3f86eb6b0771d785099c91354838d3f8d8126630 (patch) | |
tree | 7712d37d71f461b3cad0a68d14a63f124e95a9bc | |
parent | 7ecb48fde39e1d61ab8aff95581dcdfb572bcc28 (diff) |
perf tools: Get rid of exit_browser() from usage_with_options()
Since all of its users call before setup_browser(), there's no need to
call exit_browser() inside of the function.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1449716459-23004-8-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/util/parse-options.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/perf/util/parse-options.c b/tools/perf/util/parse-options.c index d09aff983581..de3290b47db1 100644 --- a/tools/perf/util/parse-options.c +++ b/tools/perf/util/parse-options.c | |||
@@ -766,7 +766,6 @@ int usage_with_options_internal(const char * const *usagestr, | |||
766 | void usage_with_options(const char * const *usagestr, | 766 | void usage_with_options(const char * const *usagestr, |
767 | const struct option *opts) | 767 | const struct option *opts) |
768 | { | 768 | { |
769 | exit_browser(false); | ||
770 | usage_with_options_internal(usagestr, opts, 0, NULL); | 769 | usage_with_options_internal(usagestr, opts, 0, NULL); |
771 | exit(129); | 770 | exit(129); |
772 | } | 771 | } |
@@ -776,8 +775,6 @@ void usage_with_options_msg(const char * const *usagestr, | |||
776 | { | 775 | { |
777 | va_list ap; | 776 | va_list ap; |
778 | 777 | ||
779 | exit_browser(false); | ||
780 | |||
781 | va_start(ap, fmt); | 778 | va_start(ap, fmt); |
782 | strbuf_addv(&error_buf, fmt, ap); | 779 | strbuf_addv(&error_buf, fmt, ap); |
783 | va_end(ap); | 780 | va_end(ap); |