Message ID | 20240701030339.56424-1-xu.yang_2@nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | perf pmu: remove one dupliacte ';' | expand |
Hello, On Mon, Jul 01, 2024 at 11:03:39AM +0800, Xu Yang wrote: > Remove one dupliacte ';' in function perf_pmu__num_events(). > > Signed-off-by: Xu Yang <xu.yang_2@nxp.com> Thanks for the fix but it's already fixed. https://lore.kernel.org/linux-perf-users/20240628053049.44521-1-yang.lee@linux.alibaba.com/ Namhyung > --- > tools/perf/util/pmu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c > index 888ce9912275..d8726ec5368d 100644 > --- a/tools/perf/util/pmu.c > +++ b/tools/perf/util/pmu.c > @@ -1765,7 +1765,7 @@ size_t perf_pmu__num_events(struct perf_pmu *pmu) > size_t nr; > > pmu_aliases_parse(pmu); > - nr = pmu->sysfs_aliases + pmu->sys_json_aliases;; > + nr = pmu->sysfs_aliases + pmu->sys_json_aliases; > > if (pmu->cpu_aliases_added) > nr += pmu->cpu_json_aliases; > -- > 2.34.1 >
diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 888ce9912275..d8726ec5368d 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -1765,7 +1765,7 @@ size_t perf_pmu__num_events(struct perf_pmu *pmu) size_t nr; pmu_aliases_parse(pmu); - nr = pmu->sysfs_aliases + pmu->sys_json_aliases;; + nr = pmu->sysfs_aliases + pmu->sys_json_aliases; if (pmu->cpu_aliases_added) nr += pmu->cpu_json_aliases;
Remove one dupliacte ';' in function perf_pmu__num_events(). Signed-off-by: Xu Yang <xu.yang_2@nxp.com> --- tools/perf/util/pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)