Changeset 20c7c40 in mainline


Ignore:
Timestamp:
2009-11-25T15:26:25Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8359969
Parents:
439d036
Message:

avoid superfluous semicolon generated by the GET_CHECK_PHONE macro

File:
1 edited

Legend:

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

    r439d036 r20c7c40  
    6161{ \
    6262        if (phoneid > IPC_MAX_PHONES) { \
    63                 err; \
     63                err \
    6464        } \
    6565        phone = &TASK->phones[phoneid]; \
     
    375375                phone_t *cloned_phone;
    376376                GET_CHECK_PHONE(cloned_phone, IPC_GET_ARG1(call->data),
    377                     return ENOENT);
     377                    return ENOENT;);
    378378                phones_lock(cloned_phone, phone);
    379379                if ((cloned_phone->state != IPC_PHONE_CONNECTED) ||
     
    535535        int rc;
    536536       
    537         GET_CHECK_PHONE(phone, phoneid, return ENOENT);
     537        GET_CHECK_PHONE(phone, phoneid, return ENOENT;);
    538538
    539539        call = ipc_call_alloc(0);
     
    591591        int rc;
    592592
    593         GET_CHECK_PHONE(phone, phoneid, return ENOENT);
     593        GET_CHECK_PHONE(phone, phoneid, return ENOENT;);
    594594
    595595        call = ipc_call_alloc(0);
     
    666666                return IPC_CALLRET_TEMPORARY;
    667667
    668         GET_CHECK_PHONE(phone, phoneid, return IPC_CALLRET_FATAL);
     668        GET_CHECK_PHONE(phone, phoneid, return IPC_CALLRET_FATAL;);
    669669
    670670        call = ipc_call_alloc(0);
     
    705705                return IPC_CALLRET_TEMPORARY;
    706706
    707         GET_CHECK_PHONE(phone, phoneid, return IPC_CALLRET_FATAL);
     707        GET_CHECK_PHONE(phone, phoneid, return IPC_CALLRET_FATAL;);
    708708
    709709        call = ipc_call_alloc(0);
     
    755755        call->flags |= IPC_CALL_FORWARDED;
    756756
    757         GET_CHECK_PHONE(phone, phoneid, { 
     757        GET_CHECK_PHONE(phone, phoneid, {
    758758                IPC_SET_RETVAL(call->data, EFORWARD);
    759759                ipc_answer(&TASK->answerbox, call);
     
    960960        phone_t *phone;
    961961
    962         GET_CHECK_PHONE(phone, phoneid, return ENOENT);
     962        GET_CHECK_PHONE(phone, phoneid, return ENOENT;);
    963963
    964964        if (ipc_phone_hangup(phone))
Note: See TracChangeset for help on using the changeset viewer.