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>
This commit is contained in:
Arnaldo Carvalho de Melo 2019-11-01 18:34:44 -03:00
parent 1dc925568f
commit b0c76fc4cf
1 changed files with 1 additions and 1 deletions

View File

@ -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;