Changeset 7565a4b in mainline
- Timestamp:
- 2017-12-19T17:34:39Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 89ea2dc
- Parents:
- 62ca560
- Location:
- kernel/generic/src/ipc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ipc.c
r62ca560 r7565a4b 444 444 * @param phone Phone structure to be hung up. 445 445 * 446 * @return 0if the phone is disconnected.447 * @return -1if the phone was already disconnected.446 * @return EOK if the phone is disconnected. 447 * @return EINVAL if the phone was already disconnected. 448 448 * 449 449 */ … … 455 455 phone->state == IPC_PHONE_CONNECTING) { 456 456 mutex_unlock(&phone->lock); 457 return -1;457 return EINVAL; 458 458 } 459 459 … … 478 478 mutex_unlock(&phone->lock); 479 479 480 return 0;480 return EOK; 481 481 } 482 482 -
kernel/generic/src/ipc/sysipc.c
r62ca560 r7565a4b 728 728 return ENOENT; 729 729 730 if (ipc_phone_hangup(kobj->phone)) { 731 kobject_put(kobj); 732 return -1; 733 } 734 730 int rc = ipc_phone_hangup(kobj->phone); 735 731 kobject_put(kobj); 736 return 0;732 return rc; 737 733 } 738 734
Note:
See TracChangeset
for help on using the changeset viewer.