X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Ftrace-ir%2Ftrace.c;h=7a61040125a55d496e7d6878b4256b603afb6e06;hb=6e30bfdaa1314e2fca0a82d9bf39e6d55780e7fb;hp=184fc0705f2dd6ea125aad2e73fb23a5748a1cb5;hpb=727170fcc3f4002562f42deeac27c985fa69f57f;p=babeltrace.git diff --git a/src/lib/trace-ir/trace.c b/src/lib/trace-ir/trace.c index 184fc070..7a610401 100644 --- a/src/lib/trace-ir/trace.c +++ b/src/lib/trace-ir/trace.c @@ -242,7 +242,6 @@ void bt_trace_set_uuid(struct bt_trace *trace, bt_uuid uuid) BT_LIB_LOGD("Set trace's UUID: %!+t", trace); } -BT_ASSERT_FUNC static bool trace_has_environment_entry(const struct bt_trace *trace, const char *name) { @@ -333,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(