perf evsel: perf_evsel__name(NULL) is valid, no need to check evsel
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 3 Jul 2019 19:12:51 +0000 (16:12 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 9 Jul 2019 12:33:55 +0000 (09:33 -0300)
commitfc50e0ba9bcac92ff177ff3ac64644108b6d8dd8
tree40382e8a4c76f836d6a844819c38266126b55608
parentf3c8d90757724982e5f07cd77d315eb64ca145ac
perf evsel: perf_evsel__name(NULL) is valid, no need to check evsel

It'll return "unknown", no need to open code it.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-4okvjmm18arjrcyfhuahgfxm@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c
tools/perf/util/session.c