summaryrefslogtreecommitdiff
path: root/Utilities/cmlibuv/src/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmlibuv/src/timer.c')
-rw-r--r--Utilities/cmlibuv/src/timer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/Utilities/cmlibuv/src/timer.c b/Utilities/cmlibuv/src/timer.c
index 9da513fc0c..4cf4ed4264 100644
--- a/Utilities/cmlibuv/src/timer.c
+++ b/Utilities/cmlibuv/src/timer.c
@@ -51,12 +51,7 @@ static int timer_less_than(const struct heap_node* ha,
/* Compare start_id when both have the same timeout. start_id is
* allocated with loop->timer_counter in uv_timer_start().
*/
- if (a->start_id < b->start_id)
- return 1;
- if (b->start_id < a->start_id)
- return 0;
-
- return 0;
+ return a->start_id < b->start_id;
}