Cleanup: usages of bt_value_array_borrow_element_by_index{,_const}()
[babeltrace.git] / src / plugins / ctf / lttng-live / viewer-connection.c
index 9b9a78e255e67ee4b2894f40db938c9c24f8c8a1..e8af3771b83c767929dfef58957551184a32ed85 100644 (file)
@@ -318,11 +318,6 @@ int list_update_session(bt_value *results,
                const char *session_name_str = NULL;
 
                map = bt_value_array_borrow_element_by_index(results, i);
-               if (!map) {
-                       BT_COMP_LOGE_STR("Error borrowing map.");
-                       ret = -1;
-                       goto end;
-               }
                hostname = bt_value_map_borrow_entry_value(map, "target-hostname");
                if (!hostname) {
                        BT_COMP_LOGE_STR("Error borrowing \"target-hostname\" entry.");
This page took 0.024847 seconds and 4 git commands to generate.