summaryrefslogtreecommitdiff
path: root/tools/perf/util/python.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2021-12-16 12:12:36 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-12-16 12:12:36 -0300
commit39f054a98ab191fed8d921763f131841d876fc0b (patch)
tree3bd5dbb58b11d30e75be3f275a4b5c2c2dda7a43 /tools/perf/util/python.c
parent8ff4f20f3eb55dea0dbbe5e32043ab6b7427882f (diff)
parent2b14864acbaaf03d9c01982e243a84632524c3ac (diff)
Merge remote-tracking branch 'torvalds/master' into perf/core
To pick up fixes. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/python.c')
-rw-r--r--tools/perf/util/python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c
index 563a9ba8954f..7f782a31bda3 100644
--- a/tools/perf/util/python.c
+++ b/tools/perf/util/python.c
@@ -461,7 +461,7 @@ get_tracepoint_field(struct pyrf_event *pevent, PyObject *attr_name)
struct tep_event *tp_format;
tp_format = trace_event__tp_format_id(evsel->core.attr.config);
- if (!tp_format)
+ if (IS_ERR_OR_NULL(tp_format))
return NULL;
evsel->tp_format = tp_format;