aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/pmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/pmu.c')
-rw-r--r--tools/perf/util/pmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c
index 8ee219b7285..a119a537169 100644
--- a/tools/perf/util/pmu.c
+++ b/tools/perf/util/pmu.c
@@ -258,9 +258,9 @@ static int pmu_config_term(struct list_head *formats,
258static int pmu_config(struct list_head *formats, struct perf_event_attr *attr, 258static int pmu_config(struct list_head *formats, struct perf_event_attr *attr,
259 struct list_head *head_terms) 259 struct list_head *head_terms)
260{ 260{
261 struct parse_events__term *term, *h; 261 struct parse_events__term *term;
262 262
263 list_for_each_entry_safe(term, h, head_terms, list) 263 list_for_each_entry(term, head_terms, list)
264 if (pmu_config_term(formats, attr, term)) 264 if (pmu_config_term(formats, attr, term))
265 return -EINVAL; 265 return -EINVAL;
266 266