projects
/
deliverable
/
babeltrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d2dbd3b
)
lib: bt_graph_{consume,run}(): add unlikely() to unlikely condition
author
Philippe Proulx
<eeppeliteloop@gmail.com>
Wed, 1 May 2019 20:40:05 +0000
(16:40 -0400)
committer
Philippe Proulx
<eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:12:56 +0000
(
00:12
-0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I37badc4c15fbde16940150854cae1e31305953f1
lib/graph/graph.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/graph/graph.c
b/lib/graph/graph.c
index b7d04b0a674b2d8fb44aa7659e9bc44e440206ca..b43c35c6504268bd7739e3aeebde8d1945278829 100644
(file)
--- a/
lib/graph/graph.c
+++ b/
lib/graph/graph.c
@@
-688,7
+688,7
@@
enum bt_graph_status bt_graph_consume(struct bt_graph *graph)
"Graph is in a faulty state: %!+g", graph);
bt_graph_set_can_consume(graph, false);
status = bt_graph_configure(graph);
- if (
status
) {
+ if (
unlikely(status)
) {
/* bt_graph_configure() logs errors */
goto end;
}
@@
-712,7
+712,7
@@
enum bt_graph_status bt_graph_run(struct bt_graph *graph)
"Graph is in a faulty state: %!+g", graph);
bt_graph_set_can_consume(graph, false);
status = bt_graph_configure(graph);
- if (
status
) {
+ if (
unlikely(status)
) {
/* bt_graph_configure() logs errors */
goto end;
}
This page took
0.027829 seconds
and
5
git commands to generate.