lib: make `bt_attributes_get_count()` return uint64_t
[babeltrace.git] / src / lib / trace-ir / trace.c
index 1536feaf6c3b4e77e720703acc188d042651c21e..7a61040125a55d496e7d6878b4256b603afb6e06 100644 (file)
@@ -332,12 +332,8 @@ end:
 
 uint64_t bt_trace_get_environment_entry_count(const struct bt_trace *trace)
 {
-       int64_t ret;
-
        BT_ASSERT_PRE_DEV_NON_NULL(trace, "Trace");
-       ret = bt_attributes_get_count(trace->environment);
-       BT_ASSERT(ret >= 0);
-       return (uint64_t) ret;
+       return bt_attributes_get_count(trace->environment);
 }
 
 void bt_trace_borrow_environment_entry_by_index_const(
This page took 0.022979 seconds and 4 git commands to generate.