Skip to content

Commit

Permalink
Arbiter: removed duplicating code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Oblomov committed Apr 7, 2019
1 parent fb78062 commit c4d448d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/ucs/datastruct/arbiter.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,7 @@ void ucs_arbiter_group_push_head_elem_always(ucs_arbiter_t *arbiter,

if (head->list.next != NULL) {
ucs_assert(arbiter != NULL);
if (ucs_list_prev(&head->list, ucs_arbiter_elem_t, list) == head) {
arbiter->current = elem;
ucs_list_head_init(&elem->list);
} else {
ucs_arbiter_group_head_replaced(arbiter, head, elem);
}
} else {
elem->list.next = NULL; /* Mark the new head as un-scheduled */
ucs_arbiter_group_head_replaced(arbiter, head, elem);
}
}

Expand Down

0 comments on commit c4d448d

Please sign in to comment.