diff options
author | Shang XiaoJing <shangxiaojing@huawei.com> | 2022-09-22 22:14:38 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-10-06 08:03:51 -0300 |
commit | c7c43e38b236eb80ae6ee60d3dffd8f894cd751c (patch) | |
tree | e5f07fc68c8b343296398ac689d3aa76131278e4 /tools/perf/builtin-stat.c | |
parent | 1dc86fc731addf783d076cb6182ebc84e2624cc0 (diff) | |
download | lwn-c7c43e38b236eb80ae6ee60d3dffd8f894cd751c.tar.gz lwn-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 <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>
Diffstat (limited to 'tools/perf/builtin-stat.c')
-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: |