]> Git Repo - linux.git/blobdiff - tools/perf/util/python.c
Merge tag 'trace-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[linux.git] / tools / perf / util / python.c
index 3e7538db91070e0761a3a3a3055817892c08be3a..82c7f034d91a7021261a71d44a7db8ac4bb8469b 100644 (file)
@@ -463,7 +463,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;
This page took 0.03959 seconds and 4 git commands to generate.