diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2023-01-20 14:34:51 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2023-01-22 18:10:18 -0300 |
commit | 477d5e35b42b6ca6e1db229977c1ca33456babd7 (patch) | |
tree | 93e3ad9556ca5521fcfcc7556f26c8dcaf8ec2ba /tools/perf/scripts/python/stackcollapse.py | |
parent | a2db72c5dac4c9bc1e577a82602639619264409f (diff) |
perf symbols: Slightly simplify 'err' usage in dso__synthesize_plt_symbols()
Return zero directly instead of needless 'goto out_elf_end' that does
the same thing. That allows 'err' to be initialized to -1 instead of
having to change its value later.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20230120123456.12449-6-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions