summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/callchain.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/perf/util/callchain.c b/tools/perf/util/callchain.c
index 662867d5c374..8d9db454f1a9 100644
--- a/tools/perf/util/callchain.c
+++ b/tools/perf/util/callchain.c
@@ -388,7 +388,6 @@ append_chain(struct callchain_node *root,
388 struct callchain_cursor *cursor, 388 struct callchain_cursor *cursor,
389 u64 period) 389 u64 period)
390{ 390{
391 struct callchain_cursor_node *curr_snap = cursor->curr;
392 struct callchain_list *cnode; 391 struct callchain_list *cnode;
393 u64 start = cursor->pos; 392 u64 start = cursor->pos;
394 bool found = false; 393 bool found = false;
@@ -420,8 +419,6 @@ append_chain(struct callchain_node *root,
420 /* matches not, relay no the parent */ 419 /* matches not, relay no the parent */
421 if (!found) { 420 if (!found) {
422 WARN_ONCE(!cmp, "Chain comparison error\n"); 421 WARN_ONCE(!cmp, "Chain comparison error\n");
423 cursor->curr = curr_snap;
424 cursor->pos = start;
425 return cmp; 422 return cmp;
426 } 423 }
427 424