summaryrefslogtreecommitdiff
path: root/tools/perf/tests/parse-no-sample-id-all.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/tests/parse-no-sample-id-all.c')
-rw-r--r--tools/perf/tests/parse-no-sample-id-all.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/tests/parse-no-sample-id-all.c b/tools/perf/tests/parse-no-sample-id-all.c
index 294c76b01b41..81c6eeaca0f5 100644
--- a/tools/perf/tests/parse-no-sample-id-all.c
+++ b/tools/perf/tests/parse-no-sample-id-all.c
@@ -44,8 +44,7 @@ static int process_events(union perf_event **events, size_t count)
for (i = 0; i < count && !err; i++)
err = process_event(&evlist, events[i]);
- if (evlist)
- perf_evlist__delete(evlist);
+ perf_evlist__delete(evlist);
return err;
}