Module: sip-router
Branch: master
Commit: f7d892e55753f84461bbadd661ac8a4482137d6a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f7d892e…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Jul 14 15:00:36 2009 +0200
tm: minor improvement
- killed an if in prepare_to_cancel
---
modules/tm/t_cancel.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/tm/t_cancel.c b/modules/tm/t_cancel.c
index bf12c3c..9fbd98b 100644
--- a/modules/tm/t_cancel.c
+++ b/modules/tm/t_cancel.c
@@ -86,13 +86,14 @@ void prepare_to_cancel(struct cell *t, branch_bm_t *cancel_bm,
{
int i;
int branches_no;
+ branch_bm_t mask;
*cancel_bm=0;
branches_no=t->nr_of_outgoings;
+ mask=~skip_branches;
membar_depends();
for( i=0 ; i<branches_no ; i++ ) {
- if (!(skip_branches & (1<<i)) && prepare_cancel_branch(t, i, 1))
- *cancel_bm |= 1<<i ;
+ *cancel_bm |= ((mask & (1<<i)) && prepare_cancel_branch(t, i,
1))<<i;
}
}