Changeset 414e09d in mainline


Ignore:
Timestamp:
2018-03-11T07:35:05Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Children:
6df41418
Parents:
3097958
git-author:
Jakub Jermar <jakub@…> (2018-01-05 20:40:40)
git-committer:
Jakub Jermar <jakub@…> (2018-03-11 07:35:05)
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

    r3097958 r414e09d  
    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.