cli: Remove unnecessary NULL check in print_value_rec
[babeltrace.git] / src / cli / babeltrace2.c
index eaffebcdb5353e2cafd6cb7036ae789b05357d2a..150b08fc12f69c079e65f5677a08fb267ec7c0bc 100644 (file)
@@ -336,9 +336,7 @@ void print_value_rec(FILE *fp, const bt_value *value, size_t indent)
        const char *str_val;
        GPtrArray *map_keys = NULL;
 
-       if (!value) {
-               goto end;
-       }
+       BT_ASSERT(value);
 
        switch (bt_value_get_type(value)) {
        case BT_VALUE_TYPE_NULL:
@@ -811,6 +809,7 @@ typedef void *(* plugin_borrow_comp_cls_by_index_func_t)(const bt_plugin *,
 typedef const bt_component_class *(* spec_comp_cls_borrow_comp_cls_func_t)(
        void *);
 
+static
 void cmd_list_plugins_print_component_classes(const bt_plugin *plugin,
                const char *cc_type_name, uint64_t count,
                plugin_borrow_comp_cls_by_index_func_t borrow_comp_cls_by_index_func,
This page took 0.023309 seconds and 4 git commands to generate.