Changeset 287e83f in mainline for kernel/generic/src/ipc/ipc.c


Ignore:
Timestamp:
2009-05-19T21:39:55Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0c2eee0
Parents:
5b9d80c5
Message:

Do not test the same condition twice.

File:
1 edited

Legend:

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

    r5b9d80c5 r287e83f  
    329329                spinlock_unlock(&box->lock);
    330330
    331                 if (phone->state != IPC_PHONE_SLAMMED) {
    332                         call = ipc_call_alloc(0);
    333                         IPC_SET_METHOD(call->data, IPC_M_PHONE_HUNGUP);
    334                         call->flags |= IPC_CALL_DISCARD_ANSWER;
    335                         _ipc_call(phone, box, call);
    336                 }
     331                call = ipc_call_alloc(0);
     332                IPC_SET_METHOD(call->data, IPC_M_PHONE_HUNGUP);
     333                call->flags |= IPC_CALL_DISCARD_ANSWER;
     334                _ipc_call(phone, box, call);
    337335        }
    338336
Note: See TracChangeset for help on using the changeset viewer.