aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-stat.c
diff options
context:
space:
mode:
authorShang XiaoJing <[email protected]>2022-09-22 14:14:38 +0000
committerArnaldo Carvalho de Melo <[email protected]>2022-10-06 11:03:51 +0000
commitc7c43e38b236eb80ae6ee60d3dffd8f894cd751c (patch)
treee5f07fc68c8b343296398ac689d3aa76131278e4 /tools/perf/builtin-stat.c
parentperf test: Introduce script for java symbol testing (diff)
downloadkernel-c7c43e38b236eb80ae6ee60d3dffd8f894cd751c.tar.gz
kernel-c7c43e38b236eb80ae6ee60d3dffd8f894cd751c.zip
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]>
Diffstat (limited to 'tools/perf/builtin-stat.c')
-rw-r--r--tools/perf/builtin-stat.c2
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: