Skip to content

Commit e273621

Browse files
johnkeepingacmel
authored andcommitted
perf unwind: Remove unnecessary test
If dwarf_callchain_users is false, then unwind__prepare_access() will not set unwind_libunwind_ops so the remaining test here is sufficient. Signed-off-by: John Keeping <john@metanate.com> Reviewed-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: john keeping <john@metanate.com> Link: http://lkml.kernel.org/r/20190815100146.28842-3-john@metanate.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent e8ba290 commit e273621

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎tools/perf/util/unwind-libunwind.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,12 @@ int unwind__prepare_access(struct map_groups *mg, struct map *map,
6969

7070
void unwind__flush_access(struct map_groups *mg)
7171
{
72-
if (!dwarf_callchain_users)
73-
return;
74-
7572
if (mg->unwind_libunwind_ops)
7673
mg->unwind_libunwind_ops->flush_access(mg);
7774
}
7875

7976
void unwind__finish_access(struct map_groups *mg)
8077
{
81-
if (!dwarf_callchain_users)
82-
return;
83-
8478
if (mg->unwind_libunwind_ops)
8579
mg->unwind_libunwind_ops->finish_access(mg);
8680
}

0 commit comments

Comments
 (0)