1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #2013 from Kijewski/msg-needless-test

core: remove needless test in msg.c
This commit is contained in:
René Kijewski 2014-11-14 12:16:36 +01:00
commit acf91883b9

View File

@ -41,14 +41,9 @@ static int _msg_send(msg_t *m, kernel_pid_t target_pid, bool block);
static int queue_msg(tcb_t *target, const msg_t *m)
{
if (target->msg_array == NULL) {
DEBUG("queue_msg(): no message queue present\n");
return 0;
}
int n = cib_put(&(target->msg_queue));
if (n < 0) {
DEBUG("queue_msg(): message queue is full\n");
DEBUG("queue_msg(): message queue is full (or there is none)\n");
return 0;
}