X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=cli%2Fbabeltrace.c;h=934f9f85eda9ebecaa44c0a6f296ede10da006d2;hp=5578a661f973def4be5036f5f04f516aa0d643cb;hb=1d9f5cd6724aafdccf82c57ee0125bbc7cfb4027;hpb=c9fe7f23d9609caf13253debd50f10a820d8de8f diff --git a/cli/babeltrace.c b/cli/babeltrace.c index 5578a661..934f9f85 100644 --- a/cli/babeltrace.c +++ b/cli/babeltrace.c @@ -1718,7 +1718,6 @@ int cmd_run_ctx_connect_upstream_port_to_downstream_component( } downstream_port_count = port_count_fn(downstream_comp); - BT_ASSERT(downstream_port_count >= 0); for (i = 0; i < downstream_port_count; i++) { const bt_port_input *in_downstream_port = @@ -2546,7 +2545,6 @@ int cmd_run_ctx_connect_comp_ports(struct cmd_run_ctx *ctx, uint64_t i; count = port_count_fn(comp); - BT_ASSERT(count >= 0); for (i = 0; i < count; i++) { const bt_port_output *upstream_port = port_by_index_fn(comp, i);