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:
commit
acf91883b9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user