X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fctf%2Flttng-live%2Fviewer-connection.c;h=f371095ce5eed5ccf87945993a58fe457cad8cc4;hb=601b0d3c9a6bf91274d0f01ccdec7fecfe3ed310;hp=79d2c31ef926962f7f709e763829af59e36ec01c;hpb=da91b29ad2964b85601e25843f1dca92f6c97406;p=babeltrace.git diff --git a/plugins/ctf/lttng-live/viewer-connection.c b/plugins/ctf/lttng-live/viewer-connection.c index 79d2c31e..f371095c 100644 --- a/plugins/ctf/lttng-live/viewer-connection.c +++ b/plugins/ctf/lttng-live/viewer-connection.c @@ -327,14 +327,8 @@ enum bt_value_status list_update_session(struct bt_value *results, ret = BT_VALUE_STATUS_ERROR; goto end; } - ret = bt_value_string_get(hostname, &hostname_str); - if (ret != BT_VALUE_STATUS_OK) { - goto end; - } - ret = bt_value_string_get(session_name, &session_name_str); - if (ret != BT_VALUE_STATUS_OK) { - goto end; - } + hostname_str = bt_value_string_get(hostname); + session_name_str = bt_value_string_get(session_name); if (!strcmp(session->hostname, hostname_str) && !strcmp(session->session_name, @@ -350,10 +344,7 @@ enum bt_value_status list_update_session(struct bt_value *results, ret = BT_VALUE_STATUS_ERROR; goto end; } - ret = bt_value_integer_get(btval, &val); - if (ret != BT_VALUE_STATUS_OK) { - goto end; - } + val = bt_value_integer_get(btval); /* sum */ val += streams; ret = bt_private_integer_bool_set(btval, val); @@ -367,10 +358,7 @@ enum bt_value_status list_update_session(struct bt_value *results, ret = BT_VALUE_STATUS_ERROR; goto end; } - ret = bt_value_integer_get(btval, &val); - if (ret != BT_VALUE_STATUS_OK) { - goto end; - } + val = bt_value_integer_get(btval); /* max */ val = max_t(int64_t, clients, val); ret = bt_private_integer_bool_set(btval, val);