Commit e2736219 authored by John Keeping's avatar John Keeping Committed by Arnaldo Carvalho de Melo
Browse files

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: default avatarJohn Keeping <john@metanate.com>
Reviewed-by: default avatarJiri 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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent e8ba2906
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -69,18 +69,12 @@ out_register:

void unwind__flush_access(struct map_groups *mg)
{
	if (!dwarf_callchain_users)
		return;

	if (mg->unwind_libunwind_ops)
		mg->unwind_libunwind_ops->flush_access(mg);
}

void unwind__finish_access(struct map_groups *mg)
{
	if (!dwarf_callchain_users)
		return;

	if (mg->unwind_libunwind_ops)
		mg->unwind_libunwind_ops->finish_access(mg);
}