Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <luoyifan@cmss.chinamobile.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20241111095209.276332-1-luoyifan@cmss.chinamobile.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Luo Yifan and committed by
Arnaldo Carvalho de Melo
b81bb703 d99b3125

-1
-1
tools/perf/builtin-timechart.c
··· 1158 1158 } 1159 1159 1160 1160 svg_box(Y, c->start_time, c->end_time, "process3"); 1161 - sample = c->io_samples; 1162 1161 for (sample = c->io_samples; sample; sample = sample->next) { 1163 1162 double h = (double)sample->bytes / c->max_bytes; 1164 1163