perf annotate: Check argument before calling setup_browser()
authorNamhyung Kim <namhyung@kernel.org>
Thu, 10 Dec 2015 03:00:53 +0000 (12:00 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Dec 2015 17:32:33 +0000 (14:32 -0300)
commit50e19ef978158a3d1f790568eccd8e4a802190c2
treebe47750a9c0b09fad3a91f9f3bc0a27f1701f7b9
parentd18929e9fde30c4d57ae57eb9a7f6f10b5808ca1
perf annotate: 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-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-annotate.c