diff options
author | Shang XiaoJing <[email protected]> | 2022-09-22 22:14:38 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-10-06 08:03:51 -0300 |
commit | c7c43e38b236eb80ae6ee60d3dffd8f894cd751c (patch) | |
tree | e5f07fc68c8b343296398ac689d3aa76131278e4 | |
parent | 1dc86fc731addf783d076cb6182ebc84e2624cc0 (diff) |
perf stat: Clean redundant if in process_evlist
Since the first if statment is covered by the following one, clean up
the first if statment.
Signed-off-by: Shang XiaoJing <[email protected]>
Acked-by: Ian Rogers <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[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-stat.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 7b8e901bce10..1677546b2ea2 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -900,8 +900,6 @@ try_again: evlist__for_each_cpu(evlist_cpu_itr, evsel_list, affinity) { counter = evlist_cpu_itr.evsel; - if (!counter->reset_group && !counter->errored) - continue; if (!counter->reset_group) continue; try_again_reset: |