Skip to content
Snippets Groups Projects
Commit c8937f8d authored by Martine Lenders's avatar Martine Lenders Committed by Martine Lenders
Browse files

core: use thread_has_msg_queue() for message queue check

parent 7835db5e
No related branches found
No related tags found
No related merge requests found
...@@ -296,7 +296,7 @@ static int _msg_receive(msg_t *m, int block) ...@@ -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) ...@@ -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));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment