diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-02-15 18:38:37 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-05-01 10:51:24 -0400 |
commit | a53e6c2568dd9e5799dfb812afdec6f3ade03e91 (patch) | |
tree | e8d506bd2195105485e056e62967b5e786cee235 | |
parent | 922eb113844e1837e401405a8558660fff72ebe1 (diff) |
return the number of released tasks
-rw-r--r-- | litmus/sync.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/litmus/sync.c b/litmus/sync.c index fccde19236..ca3b7f3707 100644 --- a/litmus/sync.c +++ b/litmus/sync.c | |||
@@ -33,7 +33,6 @@ static long do_wait_for_ts_release(void) | |||
33 | 33 | ||
34 | static long do_release_ts(lt_t start) | 34 | static long do_release_ts(lt_t start) |
35 | { | 35 | { |
36 | long ret = 0; | ||
37 | int task_count = 0; | 36 | int task_count = 0; |
38 | long flags; | 37 | long flags; |
39 | struct list_head *pos; | 38 | struct list_head *pos; |
@@ -54,7 +53,7 @@ static long do_release_ts(lt_t start) | |||
54 | 53 | ||
55 | complete_n(&ts_release, task_count); | 54 | complete_n(&ts_release, task_count); |
56 | 55 | ||
57 | return ret; | 56 | return task_count; |
58 | } | 57 | } |
59 | 58 | ||
60 | 59 | ||