mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
core/msg_reply: only assert target tcb, no error handling
This commit is contained in:
parent
dd15430fce
commit
4295d028ec
@ -228,13 +228,7 @@ int msg_reply(msg_t *m, msg_t *reply)
|
||||
unsigned state = disableIRQ();
|
||||
|
||||
tcb_t *target = (tcb_t*) sched_threads[m->sender_pid];
|
||||
|
||||
if (!target) {
|
||||
DEBUG("msg_reply(): %" PRIkernel_pid ": Target \"%" PRIkernel_pid
|
||||
"\" not existing...dropping msg!\n", sched_active_thread->pid,
|
||||
m->sender_pid);
|
||||
return -1;
|
||||
}
|
||||
assert(target != NULL);
|
||||
|
||||
if (target->status != STATUS_REPLY_BLOCKED) {
|
||||
DEBUG("msg_reply(): %" PRIkernel_pid ": Target \"%" PRIkernel_pid
|
||||
|
Loading…
Reference in New Issue
Block a user