Standardize `!ptr` i/o `ptr == NULL`, `ptr` i/o `ptr != NULL`
[babeltrace.git] / src / lib / trace-ir / trace-class.c
index 620e8f6daeb3375b0bc5bd3e006d3e1f82c5f3a9..d968ddfe236689d1e92e312e52451d19e5347acf 100644 (file)
@@ -204,7 +204,7 @@ bool has_listener_id(const struct bt_trace_class *tc, uint64_t listener_id)
        BT_ASSERT(listener_id < tc->destruction_listeners->len);
        return (&g_array_index(tc->destruction_listeners,
                        struct bt_trace_class_destruction_listener_elem,
-                       listener_id))->func != NULL;
+                       listener_id))->func;
 }
 
 enum bt_trace_class_remove_listener_status bt_trace_class_remove_destruction_listener(
This page took 0.025486 seconds and 4 git commands to generate.