Skip to content

Commit 36e15dd

Browse files
namhyungacmel
authored andcommitted
perf hists browser: Get rid of unused 'remaining' variable
It seems that the 'remaining' variable is not used by any real code. Signed-off-by: Namhyung Kim <[email protected]> Cc: Andi Kleen <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent ad7e767 commit 36e15dd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tools/perf/ui/browsers/hists.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -488,14 +488,13 @@ static int hist_browser__show_callchain_node_rb_tree(struct hist_browser *browse
488488
{
489489
struct rb_node *node;
490490
int first_row = row, width, offset = level * LEVEL_OFFSET_STEP;
491-
u64 new_total, remaining;
491+
u64 new_total;
492492

493493
if (callchain_param.mode == CHAIN_GRAPH_REL)
494494
new_total = chain_node->children_hit;
495495
else
496496
new_total = total;
497497

498-
remaining = new_total;
499498
node = rb_first(&chain_node->rb_root);
500499
while (node) {
501500
struct callchain_node *child = rb_entry(node, struct callchain_node, rb_node);
@@ -506,8 +505,6 @@ static int hist_browser__show_callchain_node_rb_tree(struct hist_browser *browse
506505
int first = true;
507506
int extra_offset = 0;
508507

509-
remaining -= cumul;
510-
511508
list_for_each_entry(chain, &child->val, list) {
512509
char bf[1024], *alloc_str;
513510
const char *str;
@@ -1084,15 +1081,14 @@ static int hist_browser__fprintf_callchain_node_rb_tree(struct hist_browser *bro
10841081
{
10851082
struct rb_node *node;
10861083
int offset = level * LEVEL_OFFSET_STEP;
1087-
u64 new_total, remaining;
1084+
u64 new_total;
10881085
int printed = 0;
10891086

10901087
if (callchain_param.mode == CHAIN_GRAPH_REL)
10911088
new_total = chain_node->children_hit;
10921089
else
10931090
new_total = total;
10941091

1095-
remaining = new_total;
10961092
node = rb_first(&chain_node->rb_root);
10971093
while (node) {
10981094
struct callchain_node *child = rb_entry(node, struct callchain_node, rb_node);
@@ -1103,8 +1099,6 @@ static int hist_browser__fprintf_callchain_node_rb_tree(struct hist_browser *bro
11031099
int first = true;
11041100
int extra_offset = 0;
11051101

1106-
remaining -= cumul;
1107-
11081102
list_for_each_entry(chain, &child->val, list) {
11091103
char bf[1024], *alloc_str;
11101104
const char *str;

0 commit comments

Comments
 (0)