perf report: Check argument before calling setup_browser()
authorNamhyung Kim <namhyung@kernel.org>
Thu, 10 Dec 2015 03:00:56 +0000 (12:00 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Dec 2015 17:35:58 +0000 (14:35 -0300)
commitb3f38fc2422ace049110d1588a67b35bd15b81ce
treea39b7a498bb0ba5e99293b8a8d9db25c10263a3b
parent1b0344e64d7b4e512a8e5d2bc88b022fbb7a9ee6
perf report: Check argument before calling setup_browser()

This is necessary to get rid of the browser dependency from
usage_with_options() and its friends.  Because there's no code
changing the argc and argv, it'd be ok to check it early.

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-5-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c