Values API: standardize parameters and return values
[babeltrace.git] / plugins / lttng-utils / copy.c
index 80179700cbdcaa712d27014a734c59732992f03e..5467d3843365534dc4b6aeeb5ffdb8b329c9474b 100644 (file)
@@ -448,8 +448,7 @@ struct debug_info *insert_new_debug_info(struct debug_info_iterator *debug_it,
        if (!field) {
                goto end;
        }
-       ret = bt_value_string_get(field, &str_value);
-       BT_ASSERT(ret == BT_VALUE_STATUS_OK);
+       str_value = bt_value_string_get(field);
 
        /* Domain not ust, no debug info */
        if (strcmp(str_value, "ust") != 0) {
@@ -464,8 +463,7 @@ struct debug_info *insert_new_debug_info(struct debug_info_iterator *debug_it,
        if (!field) {
                goto end;
        }
-       ret = bt_value_string_get(field, &str_value);
-       BT_ASSERT(ret == BT_VALUE_STATUS_OK);
+       str_value = bt_value_string_get(field);
 
        /* Tracer_name not lttng-ust, no debug info */
        if (strcmp(str_value, "lttng-ust") != 0) {
This page took 0.029357 seconds and 4 git commands to generate.