Changeset 58290b05 in mainline


Ignore:
Timestamp:
2018-03-11T07:35:05Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Children:
fb1f664
Parents:
5ee4266
git-author:
Jakub Jermar <jakub@…> (2018-03-04 12:00:48)
git-committer:
Jakub Jermar <jakub@…> (2018-03-11 07:35:05)
Message:

Streamline code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/ipc.c

    r5ee4266 r58290b05  
    756756static void ipc_wait_for_all_answered_calls(void)
    757757{
    758         call_t *call;
    759 
    760 restart:
    761         if (atomic_get(&TASK->answerbox.active_calls) == 0) {
    762                 /* Got into cleanup */
    763                 return;
    764         }
    765 
    766         call = ipc_wait_for_call(&TASK->answerbox, SYNCH_NO_TIMEOUT,
    767             SYNCH_FLAGS_NONE);
    768         assert(call->flags & (IPC_CALL_ANSWERED | IPC_CALL_NOTIF));
    769 
    770         SYSIPC_OP(answer_process, call);
    771 
    772         kobject_put(call->kobject);
    773         goto restart;
     758        while (atomic_get(&TASK->answerbox.active_calls) != 0) {
     759                call_t *call = ipc_wait_for_call(&TASK->answerbox,
     760                    SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE);
     761                assert(call->flags & (IPC_CALL_ANSWERED | IPC_CALL_NOTIF));
     762
     763                SYSIPC_OP(answer_process, call);
     764
     765                kobject_put(call->kobject);
     766        }
    774767}
    775768
Note: See TracChangeset for help on using the changeset viewer.