Changeset 466e95f7 in mainline for kernel/generic/src/ipc/ipc.c


Ignore:
Timestamp:
2012-10-03T21:08:54Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
faa45c17
Parents:
716185d
Message:

Add SYSIPC_OP macro to avoid repeating the same boilerplate code.

File:
1 edited

Legend:

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

    r716185d r466e95f7  
    513513                irq_spinlock_unlock(&box->lock, true);
    514514
    515                 if (lst == &box->calls) {
    516                         sysipc_ops_t *ops;
    517 
    518                         ops = sysipc_ops_get(call->request_method);
    519                         if (ops->request_process)
    520                                 (void) ops->request_process(call, box);
    521                 }
     515                if (lst == &box->calls)
     516                        SYSIPC_OP(request_process, call, box);
    522517
    523518                ipc_data_t old = call->data;
     
    645640        atomic_dec(&call->caller_phone->active_calls);
    646641
    647         sysipc_ops_t *ops = sysipc_ops_get(call->request_method);
    648         if (ops->request_forget)
    649                 ops->request_forget(call);
     642        SYSIPC_OP(request_forget, call);
    650643
    651644        ipc_call_release(call);
     
    716709        ASSERT(call->flags & (IPC_CALL_ANSWERED | IPC_CALL_NOTIF));
    717710
    718         sysipc_ops_t *ops = sysipc_ops_get(call->request_method);
    719         if (ops->answer_process)
    720                 ops->answer_process(call);
     711        SYSIPC_OP(answer_process, call);
    721712
    722713        ipc_call_free(call);
Note: See TracChangeset for help on using the changeset viewer.