perf stat: Clean redundant if in process_evlist
authorShang XiaoJing <shangxiaojing@huawei.com>
Thu, 22 Sep 2022 14:14:38 +0000 (22:14 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 6 Oct 2022 11:03:51 +0000 (08:03 -0300)
Since the first if statment is covered by the following one, clean up
the first if statment.

Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
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/20220922141438.22487-5-shangxiaojing@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c

index 7b8e901bce101b634007e5bb1b51a316b30d1171..1677546b2ea2d7230e8d6eae23d55f27a09160a6 100644 (file)
@@ -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: