mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 07:01:32 +00:00
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>
This commit is contained in:
parent
477d5e35b4
commit
5fec9b171c
@ -386,9 +386,6 @@ int dso__synthesize_plt_symbols(struct dso *dso, struct symsrc *ss)
|
||||
Elf *elf;
|
||||
int nr = 0, symidx, err = -1;
|
||||
|
||||
if (!ss->dynsym)
|
||||
return 0;
|
||||
|
||||
elf = ss->elf;
|
||||
ehdr = ss->ehdr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user