diff options
author | Luo Yifan <[email protected]> | 2024-11-11 17:52:09 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2024-11-13 16:27:35 -0300 |
commit | b81bb703372837a6d6b4cc964b6db58d1dfdba8b (patch) | |
tree | 34805f3e4c920111d63bbb76add3e03083453c5d | |
parent | d99b3125726aade4f5ec4aae04805134ab4b0abd (diff) |
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]>
-rw-r--r-- | tools/perf/builtin-timechart.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c index 9b50076449bd..068d297aaf44 100644 --- a/tools/perf/builtin-timechart.c +++ b/tools/perf/builtin-timechart.c @@ -1158,7 +1158,6 @@ static void draw_io_bars(struct timechart *tchart) } svg_box(Y, c->start_time, c->end_time, "process3"); - sample = c->io_samples; for (sample = c->io_samples; sample; sample = sample->next) { double h = (double)sample->bytes / c->max_bytes; |