Skip to content

Commit b81bb70

Browse files
Luo Yifanacmel
authored andcommitted
perf timechart: Remove redundant variable assignment
This patch makes a minor change that removes a redundant variable assignment. The assignment before the for loop is duplicated by the initialization within the loop header. Signed-off-by: Luo Yifan <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent d99b312 commit b81bb70

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/perf/builtin-timechart.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,6 @@ static void draw_io_bars(struct timechart *tchart)
11581158
}
11591159

11601160
svg_box(Y, c->start_time, c->end_time, "process3");
1161-
sample = c->io_samples;
11621161
for (sample = c->io_samples; sample; sample = sample->next) {
11631162
double h = (double)sample->bytes / c->max_bytes;
11641163

0 commit comments

Comments
 (0)