Changeset 314f4b59 in mainline


Ignore:
Timestamp:
2018-03-13T18:01:47Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cdc4334
Parents:
df1cbb3
git-author:
Jakub Jermar <jakub@…> (2018-01-05 20:40:40)
git-committer:
Jakub Jermar <jakub@…> (2018-03-13 18:01:47)
Message:

Remove dead code

Hungup phones with zero active calls are automatically destroyed with
the last reference.

File:
1 edited

Legend:

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

    rdf1cbb3 r314f4b59  
    440440/** Disconnect phone from answerbox.
    441441 *
    442  * This call leaves the phone in the HUNGUP state. The change to 'free' is done
    443  * lazily later.
     442 * This call leaves the phone in the hung-up state. The phone is destroyed when
     443 * its last active call is answered and there are no references to it.
    444444 *
    445445 * @param phone Phone structure to be hung up.
     
    755755
    756756        mutex_lock(&phone->lock);
    757         if ((phone->state == IPC_PHONE_HUNGUP) &&
    758             (atomic_get(&phone->active_calls) == 0)) {
    759                 phone->state = IPC_PHONE_FREE;
    760                 phone->callee = NULL;
    761         }
    762757
    763758        /*
Note: See TracChangeset for help on using the changeset viewer.