From 7deebb2f9043775f5fc4d1668c45c645f3f7d314 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 18 Aug 2017 16:03:17 -0400 Subject: [PATCH] lib: graph.c: call bt_graph_consume_no_check() in bt_graph_run() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- lib/graph/graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1