core: use thread_has_msg_queue() for message queue check

This commit is contained in:
Martine Lenders 2018-11-15 14:04:28 +01:00 committed by Martine Lenders
parent 7835db5ec3
commit c8937f8d40

View File

@ -296,7 +296,7 @@ static int _msg_receive(msg_t *m, int block)
int queue_index = -1; int queue_index = -1;
if (me->msg_array) { if (thread_has_msg_queue(me)) {
queue_index = cib_get(&(me->msg_queue)); queue_index = cib_get(&(me->msg_queue));
} }
@ -381,7 +381,7 @@ int msg_avail(void)
int queue_index = -1; int queue_index = -1;
if (me->msg_array) { if (thread_has_msg_queue(me)) {
queue_index = cib_avail(&(me->msg_queue)); queue_index = cib_avail(&(me->msg_queue));
} }