]> git.itanic.dy.fi Git - linux-stable/commit
perf symbols: Do not check ss->dynsym twice
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 20 Jan 2023 12:34:52 +0000 (14:34 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 22 Jan 2023 21:10:23 +0000 (18:10 -0300)
commit5fec9b171cd80616e52e463ae5ae155483078004
treeda68538729b8f9961e03467e62842729634abe86
parent477d5e35b42b6ca6e1db229977c1ca33456babd7
perf symbols: Do not check ss->dynsym twice

ss->dynsym is checked to be not NULL twice. Remove the first check
because, in fact, there can be a plt with no dynsym, which is something
that will be dealt with 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-7-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol-elf.c