OSDN Git Service

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)
commitc7c43e38b236eb80ae6ee60d3dffd8f894cd751c
treee5f07fc68c8b343296398ac689d3aa76131278e4
parent1dc86fc731addf783d076cb6182ebc84e2624cc0
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>
tools/perf/builtin-stat.c