Standardize `!ptr` i/o `ptr == NULL`, `ptr` i/o `ptr != NULL`
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_trace_class.i
index 57166bc9a3e944e1ae1cf11057175d1862263930..fd48deebdb32b38562a2d247d1514c604db1e6c1 100644 (file)
@@ -41,7 +41,7 @@ trace_class_destroyed_listener(const bt_trace_class *trace_class, void *py_calla
        }
 
        py_res = PyObject_CallFunction(py_callable, "(O)", py_trace_class_ptr);
-       if (py_res != NULL) {
+       if (py_res) {
                BT_ASSERT(py_res == Py_None);
        } else {
                loge_exception();
This page took 0.02343 seconds and 4 git commands to generate.