aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-11-01 18:34:44 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-11-07 08:30:18 -0300
commitb0c76fc4cfd96ae859cc50afe5deb523276f75ae (patch)
treebcf681507bf951eeaa6bea551219a7cc6a607f15 /tools/perf/util/symbol.c
parentperf parse: Add a deep delete for parse event terms (diff)
downloadlinux-dev-b0c76fc4cfd96ae859cc50afe5deb523276f75ae.tar.xz
linux-dev-b0c76fc4cfd96ae859cc50afe5deb523276f75ae.zip
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 '')
-rw-r--r--tools/perf/util/symbol.c2
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;