Changeset 7565a4b in mainline


Ignore:
Timestamp:
2017-12-19T17:34:39Z (6 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().

Location:
kernel/generic/src/ipc
Files:
2 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
  • kernel/generic/src/ipc/sysipc.c

    r62ca560 r7565a4b  
    728728                return ENOENT;
    729729       
    730         if (ipc_phone_hangup(kobj->phone)) {
    731                 kobject_put(kobj);
    732                 return -1;
    733         }
    734        
     730        int rc = ipc_phone_hangup(kobj->phone);
    735731        kobject_put(kobj);
    736         return 0;
     732        return rc;
    737733}
    738734
Note: See TracChangeset for help on using the changeset viewer.