From: Yang Jihong Date: Sat, 27 Jan 2024 02:57:56 +0000 (+0000) Subject: perf evsel: Fix duplicate initialization of data->id in evsel__parse_sample() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4962aec0d684c8edb14574ccd0da53e4926ff834;p=linux.git perf evsel: Fix duplicate initialization of data->id in evsel__parse_sample() data->id has been initialized at line 2362, remove duplicate initialization. Fixes: 3ad31d8a0df2 ("perf evsel: Centralize perf_sample initialization") Signed-off-by: Yang Jihong Reviewed-by: Arnaldo Carvalho de Melo Reviewed-by: Ian Rogers Signed-off-by: Namhyung Kim Link: https://lore.kernel.org/r/20240127025756.4041808-1-yangjihong1@huawei.com --- diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 9e67324b16083..3536404e9447b 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -2363,7 +2363,6 @@ int evsel__parse_sample(struct evsel *evsel, union perf_event *event, data->period = evsel->core.attr.sample_period; data->cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; data->misc = event->header.misc; - data->id = -1ULL; data->data_src = PERF_MEM_DATA_SRC_NONE; data->vcpu = -1;