From: Philippe Proulx Date: Fri, 18 Aug 2017 20:03:17 +0000 (-0400) Subject: lib: graph.c: call bt_graph_consume_no_check() in bt_graph_run() X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=4fef099a85fb9ec09a182180fe31d935fcdc5dae lib: graph.c: call bt_graph_consume_no_check() in bt_graph_run() This is why bt_graph_consume_no_check() exists in the first place, to avoid checking arguments and the cancel state every time considering that it's already checked. Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/lib/graph/graph.c b/lib/graph/graph.c index 0c18ef62..cb197eed 100644 --- a/lib/graph/graph.c +++ b/lib/graph/graph.c @@ -529,7 +529,7 @@ enum bt_graph_status bt_graph_run(struct bt_graph *graph) goto end; } - status = bt_graph_consume(graph); + status = bt_graph_consume_no_check(graph); if (status == BT_GRAPH_STATUS_AGAIN) { /* * If AGAIN is received and there are multiple