diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-11-01 18:34:44 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-11-07 08:30:18 -0300 |
commit | b0c76fc4cfd96ae859cc50afe5deb523276f75ae (patch) | |
tree | bcf681507bf951eeaa6bea551219a7cc6a607f15 /tools/perf/util/symbol.c | |
parent | 1dc925568f015edfdbb89e20ad41755bb70538b9 (diff) | |
download | linux-b0c76fc4cfd96ae859cc50afe5deb523276f75ae.tar.bz2 |
perf symbols: Remove needless checks for map->groups->machine
Its sufficient to check if map->groups is NULL before using it to get
->machine value.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-utiepyiv8b1tf8f79ok9d6j8@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/symbol.c')
-rw-r--r-- | tools/perf/util/symbol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index a4bd61cbc2a0..4ad39cc6368d 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c @@ -1617,7 +1617,7 @@ int dso__load(struct dso *dso, struct map *map) goto out; } - if (map->groups && map->groups->machine) + if (map->groups) machine = map->groups->machine; else machine = NULL; |