projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dc9255
)
perf symbols: Remove needless checks for map->groups->machine
author
Arnaldo Carvalho de Melo
<acme@redhat.com>
Fri, 1 Nov 2019 21:34:44 +0000
(18:34 -0300)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Thu, 7 Nov 2019 11:30:18 +0000
(08:30 -0300)
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>
tools/perf/util/symbol.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/symbol.c
b/tools/perf/util/symbol.c
index a4bd61cbc2a0b70619af1b1df40af459d0d1eea8..4ad39cc6368d4aab8cfefa489e33e3a0a74f2767 100644
(file)
--- 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;