Standardize `!ptr` i/o `ptr == NULL`, `ptr` i/o `ptr != NULL`
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_trace.i
index 3e27a368c2e1f7562a262839b9f299134198ff52..3448f646492cec8ef54060119e8a5e4cb7c1ef7d 100644 (file)
@@ -40,7 +40,7 @@ trace_destroyed_listener(const bt_trace *trace, void *py_callable)
        }
 
        py_res = PyObject_CallFunction(py_callable, "(O)", py_trace_ptr);
-       if (py_res != NULL) {
+       if (py_res) {
                BT_ASSERT(py_res == Py_None);
        } else {
                loge_exception();
This page took 0.023477 seconds and 4 git commands to generate.