Changeset 7565a4b in mainline for kernel/generic/src/ipc/ipc.c


Ignore:
Timestamp:
2017-12-19T17:34:39Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
89ea2dc
Parents:
62ca560
Message:

Return error code from ipc_phone_hangup().

File:
1 edited

Legend:

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

    r62ca560 r7565a4b  
    444444 * @param phone Phone structure to be hung up.
    445445 *
    446  * @return 0 if the phone is disconnected.
    447  * @return -1 if the phone was already disconnected.
     446 * @return EOK if the phone is disconnected.
     447 * @return EINVAL if the phone was already disconnected.
    448448 *
    449449 */
     
    455455            phone->state == IPC_PHONE_CONNECTING) {
    456456                mutex_unlock(&phone->lock);
    457                 return -1;
     457                return EINVAL;
    458458        }
    459459       
     
    478478        mutex_unlock(&phone->lock);
    479479       
    480         return 0;
     480        return EOK;
    481481}
    482482
Note: See TracChangeset for help on using the changeset viewer.